Commit inicial Ventas Productivo
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.ToolbarButtons");
|
||||
|
||||
Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton = function(element) {
|
||||
Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton.initializeBase(this, [element]);
|
||||
this._designPanel = null;
|
||||
}
|
||||
|
||||
Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton.prototype = {
|
||||
|
||||
_onmousedown: function(e) {
|
||||
if(this._designPanel == null)
|
||||
return false;
|
||||
|
||||
if(this._designPanel.isPopup())
|
||||
return false;
|
||||
|
||||
if(Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton.callBaseMethod(this, "_onmousedown", [e]) === null)
|
||||
return false;
|
||||
|
||||
this.callMethod();
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
onEditPanelActivity: function() {
|
||||
this._designPanel = this._editPanel.get_activePanel();
|
||||
},
|
||||
|
||||
callMethod: function() {
|
||||
if(this._designPanel == null)
|
||||
return false;
|
||||
|
||||
if(this._designPanel.isPopup())
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton.registerClass("Sys.Extended.UI.HtmlEditor.ToolbarButtons.DesignModeImageButton", Sys.Extended.UI.HtmlEditor.ToolbarButtons.ImageButton);
|
||||
Reference in New Issue
Block a user