Esanders has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/203817

Change subject: Fix another bug showing ltr/rtl stylesheets in demo
......................................................................

Fix another bug showing ltr/rtl stylesheets in demo

In desktop-dist.html this was causing both versions
of visualEditor.css to render on load.

Change-Id: Ie71fc73b77e354b90d13b766d0bae53bdf33d493
---
M demos/ve/demo.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor 
refs/changes/17/203817/1

diff --git a/demos/ve/demo.js b/demos/ve/demo.js
index 0cb6baf..a36cc08 100644
--- a/demos/ve/demo.js
+++ b/demos/ve/demo.js
@@ -310,7 +310,7 @@
        }
 
        return closePromise.done( function () {
-               $( '.stylesheet-ve' ).prop( 'disabled', mode !== 've' );
+               $( '.stylesheet-ve.stylesheet-' + currentDir ).prop( 
'disabled', mode !== 've' );
                switch ( mode ) {
                        case 've':
                                if ( page ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/203817
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie71fc73b77e354b90d13b766d0bae53bdf33d493
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <esand...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to