whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: retain radio button value
Date Wed, 05 Jul 2017 13:21:34 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 14fe736  retain radio button value
14fe736 is described below

commit 14fe73627f8e4d1b5aa1155fb5855371a90e8d10
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Wed Jul 5 09:20:44 2017 -0400

    retain radio button value
---
 tools/moderationhelper.rb | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/tools/moderationhelper.rb b/tools/moderationhelper.rb
index 483ce62..c898e60 100755
--- a/tools/moderationhelper.rb
+++ b/tools/moderationhelper.rb
@@ -72,13 +72,13 @@ _html do
             _tr do
               _td do
                 _label do
-                  _input type: "radio", name: "cmd", value: "list", required: true, checked:
false
+                  _input type: "radio", name: "cmd", value: "list", required: true, checked:
(@cmd == "list")
                   _ 'list (current subscribers)'
                 end
               end
               _td do
                 _label do
-                  _input type: "radio", name: "cmd", value: "subscribe", required: true,
checked: false
+                  _input type: "radio", name: "cmd", value: "subscribe", required: true,
checked: (@cmd == "subscribe")
                   _ 'subscribe (normal subscription: can post and gets messages)'
                 end
               end
@@ -86,13 +86,13 @@ _html do
             _tr do
               _td do
                 _label do
-                  _input type: "radio", name: "cmd", value: "log", required: true, checked:
false
+                  _input type: "radio", name: "cmd", value: "log", required: true, checked:
(@cmd == "log")
                   _ 'log (history of changes to the subscribers)'
                 end
               end
               _td do
                 _label do
-                  _input type: "radio", name: "cmd", value: "unsubscribe", required: true,
checked: true
+                  _input type: "radio", name: "cmd", value: "unsubscribe", required: true,
checked: (@cmd == "unsubscribe" || @cmd == nil)
                   _ 'unsubscribe'
                 end
               end
@@ -100,13 +100,13 @@ _html do
             _tr do
               _td do
                 _label do
-                  _input type: "radio", name: "cmd", value: "allow-list", required: true,
checked: false
+                  _input type: "radio", name: "cmd", value: "allow-list", required: true,
checked: (@cmd == "allow-list")
                   _ 'allow-list (currently allowed to post)'
                 end
               end
               _td do
                 _label do
-                  _input type: "radio", name: "cmd", value: "allow-subscribe", required:
true, checked: false
+                  _input type: "radio", name: "cmd", value: "allow-subscribe", required:
true, checked: (@cmd == "allow-subscribe")
                   _ 'allow-subscribe (allow posting without getting messages)'
                 end
               end
@@ -114,13 +114,13 @@ _html do
             _tr do
               _td do
                 _label do
-                  _input type: "radio", name: "cmd", value: "allow-log", required: true,
checked: false
+                  _input type: "radio", name: "cmd", value: "allow-log", required: true,
checked: (@cmd == "allow-log")
                   _ 'allow-log (history)'
                 end
               end
               _td do
                 _label do
-                  _input type: "radio", name: "cmd", value: "allow-unsubscribe", required:
true, checked: false
+                  _input type: "radio", name: "cmd", value: "allow-unsubscribe", required:
true, checked: (@cmd == "allow-unsubscribe")
                   _ 'allow-unsubscribe (drop allow posting)'
                 end
               end
@@ -128,13 +128,13 @@ _html do
             _tr do
               _td do
                 _label do
-                  _input type: "radio", name: "cmd", value: "deny-list", required: true,
checked: false
+                  _input type: "radio", name: "cmd", value: "deny-list", required: true,
checked: (@cmd == "deny-list")
                   _ 'deny-list (currently denied to post)'
                 end
               end
               _td do
                 _label do
-                  _input type: "radio", name: "cmd", value: "deny-subscribe", required: true,
checked: false
+                  _input type: "radio", name: "cmd", value: "deny-subscribe", required: true,
checked: (@cmd == "deny-subscribe")
                   _ 'deny-subscribe (prevent posting)'
                 end
               end
@@ -142,13 +142,13 @@ _html do
             _tr do
               _td do
                 _label do
-                  _input type: "radio", name: "cmd", value: "deny-log", required: true, checked:
false
+                  _input type: "radio", name: "cmd", value: "deny-log", required: true, checked:
(@cmd == "deny-log")
                   _ 'deny-log (historic)'
                 end
               end
               _td do
                 _label do
-                  _input type: "radio", name: "cmd", value: "deny-unsubscribe", required:
true, checked: false
+                  _input type: "radio", name: "cmd", value: "deny-unsubscribe", required:
true, checked: (@cmd == "deny-unsubscribe")
                   _ 'deny-unsubscribe (remove from list of denied posters)'
                 end
               end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message