From c6ec5a6d8d5fc420261f645921c458baea3f61a7 Mon Sep 17 00:00:00 2001 From: Thomas Gries Date: Wed, 10 Aug 2011 05:45:41 +0000 Subject: [PATCH] adding label atttributes for confirm checkboxes in SpecialLockdb and SpecialUnlockdb. Fix for bug30299 . --- includes/DefaultSettings.php | 6 +++--- includes/specials/SpecialLockdb.php | 6 ++++-- includes/specials/SpecialUnlockdb.php | 5 +++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index b05856d86a..a429436abf 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -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: diff --git a/includes/specials/SpecialLockdb.php b/includes/specials/SpecialLockdb.php index 5c861b3191..53f5a927d1 100644 --- a/includes/specials/SpecialLockdb.php +++ b/includes/specials/SpecialLockdb.php @@ -84,10 +84,12 @@ class SpecialLockdb extends SpecialPage { " . Html::openElement( 'td', array( 'style' => 'text-align:right' ) ) . " - " . Html::input( 'wpLockConfirm', null, 'checkbox' ) . " + " . Html::input( 'wpLockConfirm', null, 'checkbox', array( 'id' => 'mw-input-wplockconfirm' ) ) . " " . Html::openElement( 'td', array( 'style' => 'text-align:left' ) ) . - wfMsgHtml( 'lockconfirm' ) . " + Html::openElement( 'label', array( 'for' => 'mw-input-wplockconfirm' ) ) . + + wfMsgHtml( 'lockconfirm' ) . " diff --git a/includes/specials/SpecialUnlockdb.php b/includes/specials/SpecialUnlockdb.php index 95ad0bf550..e2939c2f76 100644 --- a/includes/specials/SpecialUnlockdb.php +++ b/includes/specials/SpecialUnlockdb.php @@ -79,10 +79,11 @@ class SpecialUnlockdb extends SpecialPage {
 
" . Html::openElement( 'td', array( 'style' => 'text-align:right' ) ) . " - " . Html::input( 'wpLockConfirm', null, 'checkbox' ) . " + " . Html::input( 'wpLockConfirm', null, 'checkbox', array( 'id' => 'mw-input-wpunlockconfirm' ) ) . " " . Html::openElement( 'td', array( 'style' => 'text-align:left' ) ) . - wfMsgHtml( 'unlockconfirm' ) . " + Html::openElement( 'label', array( 'for' => 'mw-input-wpunlockconfirm' ) ) . + wfMsgHtml( 'unlockconfirm' ) . " -- 2.20.1