// Name: HTMLEditor.Toolbar_buttons.Ltr.debug.js // Assembly: AjaxControlToolkit // Version: 4.5.7.1213 // FileVersion: 4.5.7.1213 Type.registerNamespace("Sys.Extended.UI.HTMLEditor.ToolbarButton"); Sys.Extended.UI.HTMLEditor.ToolbarButton.Ltr = function(element) { Sys.Extended.UI.HTMLEditor.ToolbarButton.Ltr.initializeBase(this, [element]); } Sys.Extended.UI.HTMLEditor.ToolbarButton.Ltr.prototype = { callMethod : function() { if(!Sys.Extended.UI.HTMLEditor.ToolbarButton.Ltr.callBaseMethod(this, "callMethod")) return false; this._designPanel._doc.body.style.direction=(!this.checkState())?"":"rtl"; if(!Sys.Extended.UI.HTMLEditor.isIE) { var sel = this._designPanel._getSelection(); var range = this._designPanel._createRange(sel); this._designPanel._removeAllRanges(sel); this._designPanel._selectRange(sel,range); this._designPanel.focusEditor(); } var button = this; setTimeout(function(){button._editPanel.updateToolbar();},0); }, checkState : function() { if(!Sys.Extended.UI.HTMLEditor.ToolbarButton.Ltr.callBaseMethod(this, "checkState")) return false; if(!(this._designPanel._doc.body.style.direction && this._designPanel._doc.body.style.direction=="rtl")) return true; return false; } } Sys.Extended.UI.HTMLEditor.ToolbarButton.Ltr.registerClass("Sys.Extended.UI.HTMLEditor.ToolbarButton.Ltr", Sys.Extended.UI.HTMLEditor.ToolbarButton.EditorToggleButton);