Adding an ID to the form itself
authorRaimond Spekking <raymond@users.mediawiki.org>
Wed, 4 Apr 2007 07:35:13 +0000 (07:35 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Wed, 4 Apr 2007 07:35:13 +0000 (07:35 +0000)
includes/ProtectionForm.php

index 011c3ca..cbac5f0 100644 (file)
@@ -201,6 +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',
                                'action' => $this->mTitle->getLocalUrl( 'action=protect' ),
                                'method' => 'post',
                                'onsubmit' => 'protectEnable(true)' ) );