1// Name: HTMLEditor.Toolbar_buttons.OkCancelPopupButton.debug.js 2// Assembly: AjaxControlToolkit 3// Version: 4.1.7.1213 4// FileVersion: 4.1.7.1213 5Type.registerNamespace("Sys.Extended.UI.HTMLEditor.ToolbarButton"); 6 7Sys.Extended.UI.HTMLEditor.ToolbarButton.OkCancelPopupButton = function(element) { 8 Sys.Extended.UI.HTMLEditor.ToolbarButton.OkCancelPopupButton.initializeBase(this, [element]); 9} 10 11Sys.Extended.UI.HTMLEditor.ToolbarButton.OkCancelPopupButton.prototype = { 12 13 set_activeEditPanel: function(value) { 14 if (this._editPanel != value && this._editPanel != null) { 15 var relatedPopup = this.get_relatedPopup(); 16 if (typeof relatedPopup._forceImClose == "function") { 17 var func = relatedPopup._forceImClose; 18 func(relatedPopup._iframe.contentWindow); 19 } 20 } 21 Sys.Extended.UI.HTMLEditor.ToolbarButton.DesignModePopupImageButton.callBaseMethod(this, "set_activeEditPanel", [value]); 22 }, 23 24 callMethod: function() { 25 if (!Sys.Extended.UI.HTMLEditor.ToolbarButton.OkCancelPopupButton.callBaseMethod(this, "callMethod")) return false; 26 this.openPopup(Function.createDelegate(this, this._onopened)); 27 return true; 28 }, 29 30 _onopened: function(contentWindow) { 31 contentWindow.popupMediator.set_callMethodByName("OK", Function.createDelegate(this, this._onOK)); 32 contentWindow.popupMediator.set_callMethodByName("Cancel", Function.createDelegate(this, this._onCancel)); 33 var relatedPopup = this.get_relatedPopup(); 34 relatedPopup._popup = this._designPanel._popup; 35 relatedPopup._forceImClose = Function.createDelegate(this, this._onCancel); 36 this._designPanel._popup = this.get_relatedPopup(); 37 this.opened(contentWindow); 38 }, 39 40 opened: function(contentWindow) { 41 }, 42 43 _onOK: function(contentWindow) { 44 if (this.okCheck(contentWindow)) 45 this._exit(Function.createDelegate(this, this.ok), contentWindow); 46 }, 47 48 _onCancel: function(contentWindow) { 49 if (this.cancelCheck(contentWindow)) 50 this._exit(Function.createDelegate(this, this.cancel), contentWindow); 51 }, 52 53 _exit: function(callback, contentWindow) { 54 this.closePopup(); 55 this._designPanel._popup = this.get_relatedPopup()._popup; 56 this.get_relatedPopup()._popup = null; 57 this.get_relatedPopup()._forceImClose = null; 58 callback(contentWindow); 59 }, 60 61 ok: function(contentWindow) { 62 }, 63 64 cancel: function(contentWindow) { 65 }, 66 67 okCheck: function(contentWindow) { 68 return true; 69 }, 70 71 cancelCheck: function(contentWindow) { 72 return true; 73 } 74} 75 76Sys.Extended.UI.HTMLEditor.ToolbarButton.OkCancelPopupButton.registerClass("Sys.Extended.UI.HTMLEditor.ToolbarButton.OkCancelPopupButton", Sys.Extended.UI.HTMLEditor.ToolbarButton.DesignModePopupImageButton);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.