From e2148c0ac5ace4b7a697841bbd878ecb4abd46a8 Mon Sep 17 00:00:00 2001 From: TheDJ Date: Thu, 26 Mar 2015 22:06:43 +0000 Subject: [PATCH] Revert "mediawiki.action.edit.preview: Disable if there is no #wpTextbox1" This caused T94089 This reverts commit c890a2fdefaae2551897ce2f1b9f39d82b435dc2. Change-Id: Ia5e151d12f0ad03ce50802502e661d7499749526 --- .../src/mediawiki.action/mediawiki.action.edit.preview.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/src/mediawiki.action/mediawiki.action.edit.preview.js b/resources/src/mediawiki.action/mediawiki.action.edit.preview.js index 84bde7d237..3bf8e32b7a 100644 --- a/resources/src/mediawiki.action/mediawiki.action.edit.preview.js +++ b/resources/src/mediawiki.action/mediawiki.action.edit.preview.js @@ -205,8 +205,7 @@ $( function () { // Do not enable on user .js/.css pages, as there's no sane way of "previewing" // the scripts or styles without reloading the page. - // Do not enable for ProofreadPage Index page editors, which have no textbox - if ( $( '#mw-userjsyoucanpreview' ).length || $( '#mw-usercssyoucanpreview' ).length || $( '#wpTextbox1' ).length === 0 ) { + if ( $( '#mw-userjsyoucanpreview' ).length || $( '#mw-usercssyoucanpreview' ).length ) { return; } -- 2.20.1