diff options
author | Anders Kaseorg <[email protected]> | 2017-01-20 12:29:59 -0500 |
---|---|---|
committer | Anders Kaseorg <[email protected]> | 2017-01-21 13:22:14 -0500 |
commit | 6887a0f57307820b097b51aee952c555bcf69024 (patch) | |
tree | ff041c03ac0251468eb4308927052f8bd6071ca3 /lib/dijit/_editor/plugins/ToggleDir.js | |
parent | 9f539be3c2c93ce358b10ca396e922b3b99b56ea (diff) |
lib: Upgrade Dojo and Dijit from 1.8.3 to 1.12.1
The itemNode and expandoNode elements have changed from img to
span (https://bugs.dojotoolkit.org/ticket/16699), so we now put our
tree icons inside them rather than replacing them.
Signed-off-by: Anders Kaseorg <[email protected]>
Diffstat (limited to 'lib/dijit/_editor/plugins/ToggleDir.js')
-rw-r--r-- | lib/dijit/_editor/plugins/ToggleDir.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dijit/_editor/plugins/ToggleDir.js b/lib/dijit/_editor/plugins/ToggleDir.js index bf16dce9c..6f436aa8d 100644 --- a/lib/dijit/_editor/plugins/ToggleDir.js +++ b/lib/dijit/_editor/plugins/ToggleDir.js @@ -1,2 +1,2 @@ //>>built -define("dijit/_editor/plugins/ToggleDir",["dojo/_base/declare","dojo/dom-style","dojo/_base/kernel","dojo/_base/lang","../_Plugin","../../form/ToggleButton"],function(_1,_2,_3,_4,_5,_6){_3.experimental("dijit._editor.plugins.ToggleDir");var _7=_1("dijit._editor.plugins.ToggleDir",_5,{useDefaultCommand:false,command:"toggleDir",buttonClass:_6,_initButton:function(){this.inherited(arguments);this.editor.onLoadDeferred.then(_4.hitch(this,function(){var _8=this.editor.editorObject.contentWindow.document.documentElement;_8=_8.getElementsByTagName("body")[0];var _9=_2.getComputedStyle(_8).direction=="ltr";this.button.set("checked",!_9);this.connect(this.button,"onChange","_setRtl");}));},updateState:function(){this.button.set("disabled",this.get("disabled"));},_setRtl:function(_a){var _b="ltr";if(_a){_b="rtl";}var _c=this.editor.editorObject.contentWindow.document.documentElement;_c=_c.getElementsByTagName("body")[0];_c.dir=_b;}});_5.registry["toggleDir"]=function(){return new _7({command:"toggleDir"});};return _7;});
\ No newline at end of file +define("dijit/_editor/plugins/ToggleDir",["dojo/_base/declare","dojo/dom-style","dojo/_base/kernel","dojo/_base/lang","dojo/on","../_Plugin","../../form/ToggleButton"],function(_1,_2,_3,_4,on,_5,_6){var _7=_1("dijit._editor.plugins.ToggleDir",_5,{useDefaultCommand:false,command:"toggleDir",buttonClass:_6,_initButton:function(){this.inherited(arguments);var _8=this.button,_9=this.editor.isLeftToRight();this.own(this.button.on("change",_4.hitch(this,function(_a){this.editor.set("textDir",_9^_a?"ltr":"rtl");})));var _b=_9?"ltr":"rtl";function _c(_d){_8.set("checked",_d&&_d!==_b,false);};_c(this.editor.get("textDir"));this.editor.watch("textDir",function(_e,_f,_10){_c(_10);});},updateState:function(){this.button.set("disabled",this.get("disabled"));}});_5.registry["toggleDir"]=function(){return new _7({command:"toggleDir"});};return _7;});
\ No newline at end of file |