Make sure that the old insertTags of mediawiki.action.edit.js works with each textare...
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Mon, 14 Nov 2011 23:28:48 +0000 (23:28 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Mon, 14 Nov 2011 23:28:48 +0000 (23:28 +0000)
Note. Using input:text, because input[type=text] doesn't return the input's with no type set.

This fixes bug 31682, where Extension:CharInsert wasn't working on upload pages anymore and
bug 31566, where Extension:Proofread's header and footer fields didn't work icw CharInsert

resources/mediawiki.action/mediawiki.action.edit.js

index 94ee62c..497a424 100644 (file)
@@ -85,7 +85,7 @@
                // Create button bar
                mw.toolbar.init();
 
-               $( '#wpSummary, #wpTextbox1' ).focus( function() {
+               $( 'textarea, input:text' ).focus( function() {
                        currentFocused = $(this);
                });