Follow-up ebe7205c: Edit stash: Unbreak jQuery selectors
authorFomafix <fomafix@googlemail.com>
Sat, 25 Jun 2016 09:40:51 +0000 (09:40 +0000)
committerJforrester <jforrester@wikimedia.org>
Sat, 25 Jun 2016 12:18:28 +0000 (12:18 +0000)
Change-Id: I4d72948ba62cb5c1cc29277f30363c29e42fa25b

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;