changeset 3168:0b0b756908c1

fix using unique IDs for 'trivial change' checkboxes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 02 Mar 2008 15:35:32 +0100
parents 91092bf1816a
children a654cf294f4e
files MoinMoin/PageEditor.py MoinMoin/PageGraphicalEditor.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Sun Mar 02 15:17:36 2008 +0100
+++ b/MoinMoin/PageEditor.py	Sun Mar 02 15:35:32 2008 +0100
@@ -411,8 +411,8 @@
             TrivialBoxes[i].checked = CheckedBox.checked;
     }
 
-    document.write('<input type="checkbox" name="trivial" id="chktrivial" value="1" %(checked)s onclick="toggle_trivial(this)">');
-    document.write('<label for="chktrivial">%(label)s</label>');
+    document.write('<input type="checkbox" name="trivial" id="chktrivialtop" value="1" %(checked)s onclick="toggle_trivial(this)">');
+    document.write('<label for="chktrivialtop">%(label)s</label>');
     //-->
 </script> ''' % {
                 'checked': ('', 'checked')[form.get('trivial', ['0'])[0] == '1'],
--- a/MoinMoin/PageGraphicalEditor.py	Sun Mar 02 15:17:36 2008 +0100
+++ b/MoinMoin/PageGraphicalEditor.py	Sun Mar 02 15:35:32 2008 +0100
@@ -298,8 +298,8 @@
     }
 </script>
 &nbsp;
-<input type="checkbox" name="trivial" id="chktrivial" value="1" %(checked)s onclick="toggle_trivial(this)">
-<label for="chktrivial">%(label)s</label>
+<input type="checkbox" name="trivial" id="chktrivialtop" value="1" %(checked)s onclick="toggle_trivial(this)">
+<label for="chktrivialtop">%(label)s</label>
 ''' % {
           'checked': ('', 'checked')[form.get('trivial', ['0'])[0] == '1'],
           'label': _("Trivial change"),