* adding an ID to the submit button
authorRaimond Spekking <raymond@users.mediawiki.org>
Mon, 16 Apr 2007 10:34:58 +0000 (10:34 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Mon, 16 Apr 2007 10:34:58 +0000 (10:34 +0000)
* changing ID introduced with r20998: for new IDs use 'mw-'

includes/ProtectionForm.php

index cbac5f0..d803b94 100644 (file)
@@ -201,7 +201,7 @@ class ProtectionForm {
                        // The submission needs to reenable the move permission selector
                        // if it's in locked mode, or some browsers won't submit the data.
                        $out .= wfOpenElement( 'form', array(
-                               'id' => 'mwProtect-Form',
+                               'id' => 'mw-Protect-Form',
                                'action' => $this->mTitle->getLocalUrl( 'action=protect' ),
                                'method' => 'post',
                                'onsubmit' => 'protectEnable(true)' ) );
@@ -330,6 +330,7 @@ class ProtectionForm {
 
        function buildSubmit() {
                return wfElement( 'input', array(
+                       'id' => 'mw-Protect-submit',
                        'type' => 'submit',
                        'value' => wfMsg( 'confirm' ) ) );
        }