Merge "Follow-up ebe7205c: Edit stash: Unbreak jQuery selectors"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 25 Jun 2016 14:23:01 +0000 (14:23 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 25 Jun 2016 14:23:01 +0000 (14:23 +0000)
resources/src/mediawiki.action/mediawiki.action.edit.stash.js

index 2ae05dd..da27d20 100644 (file)
                        $form = $( '#editform' ),
                        $text = $form.find( '#wpTextbox1' ),
                        $summary = $form.find( '#wpSummary' ),
-                       section = $form.find( '#wpSection' ).val(),
-                       model = $form.find( '#model' ).val(),
-                       format = $form.find( '#format' ).val(),
-                       revId = $form.find( '#parentRevId' ).val(),
+                       section = $form.find( '[name=wpSection]' ).val(),
+                       model = $form.find( '[name=model]' ).val(),
+                       format = $form.find( '[name=format]' ).val(),
+                       revId = $form.find( '[name=parentRevId]' ).val(),
                        lastText = $text.textSelection( 'getContents' ),
                        timer = null;