adding label atttributes for confirm checkboxes in SpecialLockdb and SpecialUnlockdb...
authorThomas Gries <wikinaut@users.mediawiki.org>
Wed, 10 Aug 2011 05:45:41 +0000 (05:45 +0000)
committerThomas Gries <wikinaut@users.mediawiki.org>
Wed, 10 Aug 2011 05:45:41 +0000 (05:45 +0000)
includes/DefaultSettings.php
includes/specials/SpecialLockdb.php
includes/specials/SpecialUnlockdb.php

index b05856d..a429436 100644 (file)
@@ -2276,7 +2276,7 @@ $wgHandheldForIPhone = false;
  * This enables a lot of neat customizations, but may
  * increase security risk to users and server load.
  */
-$wgAllowUserJs = false;
+$wgAllowUserJs = true;
 
 /**
  * Allow user Cascading Style Sheets (CSS)?
@@ -2487,7 +2487,7 @@ $wgResourceLoaderInlinePrivateModules = true;
  * The default debug mode (on/off) for of ResourceLoader requests. This will still
  * be overridden when the debug URL parameter is used.
  */
-$wgResourceLoaderDebug = false;
+$wgResourceLoaderDebug = true;
 
 /**
  * Enable embedding of certain resources using Edge Side Includes. This will
@@ -2500,7 +2500,7 @@ $wgResourceLoaderUseESI = false;
  * Put each statement on its own line when minifying JavaScript. This makes
  * debugging in non-debug mode a bit easier.
  */
-$wgResourceLoaderMinifierStatementsOnOwnLine = false;
+$wgResourceLoaderMinifierStatementsOnOwnLine = true;
 
 /**
  * Maximum line length when minifying JavaScript. This is not a hard maximum:
index 5c861b3..53f5a92 100644 (file)
@@ -84,10 +84,12 @@ class SpecialLockdb extends SpecialPage {
 <table>
        <tr>
                " . Html::openElement( 'td', array( 'style' => 'text-align:right' ) ) . "
-                       " . Html::input( 'wpLockConfirm', null, 'checkbox' ) . "
+                       " . Html::input( 'wpLockConfirm', null, 'checkbox', array( 'id' => 'mw-input-wplockconfirm' ) ) . "
                </td>
                " . Html::openElement( 'td', array( 'style' => 'text-align:left' ) ) .
-                       wfMsgHtml( 'lockconfirm' ) . "</td>
+                   Html::openElement( 'label', array( 'for' => 'mw-input-wplockconfirm' ) ) .
+
+                       wfMsgHtml( 'lockconfirm' ) . "</label></td>
        </tr>
        <tr>
                <td>&#160;</td>
index 95ad0bf..e2939c2 100644 (file)
@@ -79,10 +79,11 @@ class SpecialUnlockdb extends SpecialPage {
 <table>
        <tr>
                " . Html::openElement( 'td', array( 'style' => 'text-align:right' ) ) . "
-                       " . Html::input( 'wpLockConfirm', null, 'checkbox' ) . "
+                       " . Html::input( 'wpLockConfirm', null, 'checkbox',  array( 'id' => 'mw-input-wpunlockconfirm' )  ) . "
                </td>
                " . Html::openElement( 'td', array( 'style' => 'text-align:left' ) ) .
-                       wfMsgHtml( 'unlockconfirm' ) . "</td>
+                   Html::openElement( 'label', array( 'for' => 'mw-input-wpunlockconfirm' ) ) .
+                       wfMsgHtml( 'unlockconfirm' ) . "</label></td>
        </tr>
        <tr>
                <td>&#160;</td>