[geeklog-hg] geeklog: Bound the 'for' attribute of the <label> tag and the 'i...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Jul 21 05:10:36 EDT 2012


changeset 8783:151b381e1504
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/151b381e1504
user: dengen
date: Sat Jul 21 18:09:54 2012 +0900
description:
Bound the 'for' attribute of the <label> tag and the 'id' attribute of the related element

diffstat:

 plugins/calendar/templates/admin/eventeditor.thtml              |  2 +-
 plugins/links/templates/admin/categoryeditor.thtml              |  2 +-
 plugins/links/templates/admin/linkeditor.thtml                  |  2 +-
 plugins/polls/templates/admin/polleditor.thtml                  |  2 +-
 plugins/staticpages/templates/admin/editor.thtml                |  2 +-
 plugins/staticpages/templates/admin/editor_advanced.thtml       |  2 +-
 public_html/layout/denim/admin/block/blockeditor.thtml          |  2 +-
 public_html/layout/denim/admin/story/storyeditor.thtml          |  2 +-
 public_html/layout/denim/admin/story/storyeditor_advanced.thtml |  2 +-
 public_html/layout/denim/admin/topic/topiceditor.thtml          |  2 +-
 system/lib-security.php                                         |  4 ++--
 11 files changed, 12 insertions(+), 12 deletions(-)

diffs (141 lines):

diff -r 71afe95002cb -r 151b381e1504 plugins/calendar/templates/admin/eventeditor.thtml
--- a/plugins/calendar/templates/admin/eventeditor.thtml	Tue Jul 17 22:40:46 2012 +0900
+++ b/plugins/calendar/templates/admin/eventeditor.thtml	Sat Jul 21 18:09:54 2012 +0900
@@ -104,7 +104,7 @@
         <dt>{lang_owner}</dt>
         <dd>{owner_name}<input type="hidden" name="owner_id" value="{owner_id}"{xhtml}></dd>
 
-        <dt><label>{lang_group}</label></dt>
+        <dt><label for="group_id">{lang_group}</label></dt>
         <dd>{group_dropdown}</dd>
 
         <dt><label for="admin-permissions">{lang_permissions}</label></dt>
diff -r 71afe95002cb -r 151b381e1504 plugins/links/templates/admin/categoryeditor.thtml
--- a/plugins/links/templates/admin/categoryeditor.thtml	Tue Jul 17 22:40:46 2012 +0900
+++ b/plugins/links/templates/admin/categoryeditor.thtml	Sat Jul 21 18:09:54 2012 +0900
@@ -32,7 +32,7 @@
       <dt>{lang_owner}</dt>
       <dd>{owner_name}<input type="hidden" name="owner_id" value="{cat_ownerid}"{xhtml}></dd>
 
-      <dt><label>{lang_group}</label></dt>
+      <dt><label for="group_id">{lang_group}</label></dt>
       <dd>{group_dropdown}</dd>
 
       <dt><label for="admin-permissions">{lang_permissions}</label></dt>
diff -r 71afe95002cb -r 151b381e1504 plugins/links/templates/admin/linkeditor.thtml
--- a/plugins/links/templates/admin/linkeditor.thtml	Tue Jul 17 22:40:46 2012 +0900
+++ b/plugins/links/templates/admin/linkeditor.thtml	Sat Jul 21 18:09:54 2012 +0900
@@ -34,7 +34,7 @@
       <dt>{lang_owner}</dt>
       <dd>{owner_name}<input type="hidden" name="owner_id" value="{link_ownerid}"{xhtml}></dd>
 
-      <dt><label>{lang_group}</label></dt>
+      <dt><label for="group_id">{lang_group}</label></dt>
       <dd>{group_dropdown}</dd>
 
       <dt><label for="admin-permissions">{lang_permissions}</label></dt>
diff -r 71afe95002cb -r 151b381e1504 plugins/polls/templates/admin/polleditor.thtml
--- a/plugins/polls/templates/admin/polleditor.thtml	Tue Jul 17 22:40:46 2012 +0900
+++ b/plugins/polls/templates/admin/polleditor.thtml	Sat Jul 21 18:09:54 2012 +0900
@@ -43,7 +43,7 @@
           <dt>{lang_owner}</dt>
           <dd>{owner_name}<input type="hidden" name="owner_id" value="{owner_id}"{xhtml}></dd>
 
-          <dt><label>{lang_group}</label></dt>
+          <dt><label for="group_id">{lang_group}</label></dt>
           <dd>{group_dropdown}</dd>
 
           <dt><label for="admin-permissions">{lang_permissions}</label></dt>
diff -r 71afe95002cb -r 151b381e1504 plugins/staticpages/templates/admin/editor.thtml
--- a/plugins/staticpages/templates/admin/editor.thtml	Tue Jul 17 22:40:46 2012 +0900
+++ b/plugins/staticpages/templates/admin/editor.thtml	Sat Jul 21 18:09:54 2012 +0900
@@ -103,7 +103,7 @@
           <dd>{owner_link} {camera_icon}
               <input type="hidden" name="owner_id" value="{owner_id}"{xhtml}></dd>
 
-          <dt><label>{lang_group}</label></dt>
+          <dt><label for="group_id">{lang_group}</label></dt>
           <dd>{group_dropdown}</dd>
 
           <dt><label for="admin-permissions">{lang_permissions}</label></dt>
diff -r 71afe95002cb -r 151b381e1504 plugins/staticpages/templates/admin/editor_advanced.thtml
--- a/plugins/staticpages/templates/admin/editor_advanced.thtml	Tue Jul 17 22:40:46 2012 +0900
+++ b/plugins/staticpages/templates/admin/editor_advanced.thtml	Sat Jul 21 18:09:54 2012 +0900
@@ -136,7 +136,7 @@
           <dd>{owner_link} {camera_icon}
               <input type="hidden" name="owner_id" value="{owner_id}"{xhtml}></dd>
 
-          <dt><label>{lang_group}</label></dt>
+          <dt><label for="group_id">{lang_group}</label></dt>
           <dd>{group_dropdown}</dd>
 
           <dt><label for="admin-permissions">{lang_permissions}</label></dt>
diff -r 71afe95002cb -r 151b381e1504 public_html/layout/denim/admin/block/blockeditor.thtml
--- a/public_html/layout/denim/admin/block/blockeditor.thtml	Tue Jul 17 22:40:46 2012 +0900
+++ b/public_html/layout/denim/admin/block/blockeditor.thtml	Sat Jul 21 18:09:54 2012 +0900
@@ -93,7 +93,7 @@
         <dt>{lang_owner}</dt>
         <dd>{owner_username}</dd>
 
-        <dt><label>{lang_group}</label></dt>
+        <dt><label for="group_id">{lang_group}</label></dt>
         <dd>{group_dropdown}</dd>
 
         <dt><label for="admin-permissions">{lang_permissions}</label></dt>
diff -r 71afe95002cb -r 151b381e1504 public_html/layout/denim/admin/story/storyeditor.thtml
--- a/public_html/layout/denim/admin/story/storyeditor.thtml	Tue Jul 17 22:40:46 2012 +0900
+++ b/public_html/layout/denim/admin/story/storyeditor.thtml	Sat Jul 21 18:09:54 2012 +0900
@@ -175,7 +175,7 @@
         <dt>{lang_owner}</dt>
         <dd>{owner_name}</dd>
 
-        <dt><label>{lang_group}</label></dt>
+        <dt><label for="group_id">{lang_group}</label></dt>
         <dd>{group_dropdown}</dd>
 
         <dt><label for="admin-permissions">{lang_permissions}</label></dt>
diff -r 71afe95002cb -r 151b381e1504 public_html/layout/denim/admin/story/storyeditor_advanced.thtml
--- a/public_html/layout/denim/admin/story/storyeditor_advanced.thtml	Tue Jul 17 22:40:46 2012 +0900
+++ b/public_html/layout/denim/admin/story/storyeditor_advanced.thtml	Sat Jul 21 18:09:54 2012 +0900
@@ -265,7 +265,7 @@
       <dt>{lang_owner}</dt>
       <dd>{owner_name}</dd>
 
-      <dt><label>{lang_group}</label></dt>
+      <dt><label for="group_id">{lang_group}</label></dt>
       <dd>{group_dropdown}</dd>
 
       <dt><label for="admin-permissions">{lang_permissions}</label></dt>
diff -r 71afe95002cb -r 151b381e1504 public_html/layout/denim/admin/topic/topiceditor.thtml
--- a/public_html/layout/denim/admin/topic/topiceditor.thtml	Tue Jul 17 22:40:46 2012 +0900
+++ b/public_html/layout/denim/admin/topic/topiceditor.thtml	Sat Jul 21 18:09:54 2012 +0900
@@ -60,7 +60,7 @@
         <dt>{lang_owner}</dt>
         <dd>{owner_name}</dd>
 
-        <dt><label>{lang_group}</label></dt>
+        <dt><label for="group_id">{lang_group}</label></dt>
         <dd>{group_dropdown}</dd>
 
         <dt><label for="admin-permissions">{lang_permissions}</label></dt>
diff -r 71afe95002cb -r 151b381e1504 system/lib-security.php
--- a/system/lib-security.php	Tue Jul 17 22:40:46 2012 +0900
+++ b/system/lib-security.php	Sat Jul 21 18:09:54 2012 +0900
@@ -1063,7 +1063,7 @@
     if ($access == 3) {
         $usergroups = SEC_getUserGroups ();
 
-        $groupdd .= '<select name="group_id">' . LB;
+        $groupdd .= '<select id="group_id" name="group_id">' . LB;
         foreach ($usergroups as $ug_name => $ug_id) {
             $groupdd .= '<option value="' . $ug_id . '"';
             if ($group_id == $ug_id) {
@@ -1076,7 +1076,7 @@
         // They can't set the group then
         $groupdd .= DB_getItem ($_TABLES['groups'], 'grp_name',
                                 "grp_id = '$group_id'")
-                 . '<input type="hidden" name="group_id" value="' . $group_id
+                 . '<input type="hidden" id="group_id" name="group_id" value="' . $group_id
                  . '"' . XHTML . '>';
     }
 



More information about the geeklog-cvs mailing list