var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var __aspxBarDockToolbarNameSuffix = "_T"; var __aspxBarDockItemPickerButtonClassName = "dxhetipControl"; var __aspxHEItemPickerImageMode = { ShowDropDown: 0, ExecuteAction: 1, ExecuteSelectedItemAction: 2 } ASPxClientToolbarConsts = {}; ASPxClientToolbarConsts.ClassNames = { CustomDropDownImageItem: "dxtb-cddi", CustomDropDownTextItem: "dxtb-cddt" }; ASPxClientBarDockControl = _aspxCreateClass(ASPxClientControl, { constructor: function(name){ this.constructor.prototype.constructor.call(this, name); this.toolbarsCount = -1; this.toolbarName = ""; this.updateItemsTimeout = 300; this.updateItemsTimerId = -1; this.updateItemsTimerString = ""; this.Command = new ASPxClientEvent(); this.ItemUpdate = new ASPxClientEvent(); this.DropDownItemBeforeFocus = new ASPxClientEvent(); this.DropDownItemCloseUp = new ASPxClientEvent(); this.CustomComboBoxInit = new ASPxClientEvent(); }, Initialize: function(){ this.constructor.prototype.Initialize.call(this); this.toolbarName = this.name + __aspxBarDockToolbarNameSuffix; this.updateItemsTimerString = "aspxBDUpdateItemsByTimer('" + this.name + "')"; }, GetToolbarControl: function(index){ return aspxGetControlCollection().Get(this.toolbarName + index); }, Focus: function(){ if(this.toolbarsCount > 0) { var tb = this.GetToolbarControl(0); var tbItemCount = tb.GetItemCount(); for(var i = 0; i < tbItemCount; i++) { var item = tb.GetItem(i); if(item.GetEnabled()) { tb.TryFocusItem(i); break; } } } }, FocusLastToolbar: function(){ if(this.toolbarsCount > 0) this.GetToolbarControl(this.toolbarsCount - 1).FocusLastItem(); }, DoUpdateItems: function(){ if(!this.clientEnabled || !this.GetMainElement()) return; for(var i = 0 ; i < this.toolbarsCount; i ++) { var toolBar = this.GetToolbarControl(i); if (toolBar) toolBar.UpdateItems(); } }, OnCommand: function(toolbar, item, value){ this.RaiseCommand(toolbar, item, value); }, OnItemUpdate: function(toolbar, item){ this.RaiseItemUpdate(toolbar, item); }, OnDropDownItemBeforeFocus: function(toolbar, item){ this.RaiseDropDownItemBeforeFocus(toolbar, item); }, OnDropDownItemCloseUp: function(toolbar, item){ this.RaiseDropDownItemCloseUp(toolbar, item); }, OnPopup: function(toolbar, e){ this.HideAllPopups(toolbar, e.item); }, OnToolbarCustomComboBoxInit: function(toolbar, combobox) { this.RaiseToolbarCustomComboBoxInit(toolbar, combobox); }, RaiseCommand: function(toolbar, item, value){ if(!this.Command.IsEmpty()){ var args = new ASPxClientBarDockControlEventArgs(false, toolbar, item, value); this.Command.FireEvent(this, args); } }, RaiseItemUpdate: function(toolbar, item){ if(!this.ItemUpdate.IsEmpty()){ var args = new ASPxClientBarDockControlEventArgs(false, toolbar, item, null); this.ItemUpdate.FireEvent(this, args); } }, RaiseDropDownItemBeforeFocus: function(toolbar, item){ if(!this.DropDownItemBeforeFocus.IsEmpty()){ var args = new ASPxClientBarDockControlEventArgs(false, toolbar, item, null); this.DropDownItemBeforeFocus.FireEvent(this, args); } }, RaiseDropDownItemCloseUp: function(toolbar, item){ if(!this.DropDownItemCloseUp.IsEmpty()){ var args = new ASPxClientBarDockControlEventArgs(false, toolbar, item, null); this.DropDownItemCloseUp.FireEvent(this, args); } }, RaiseToolbarCustomComboBoxInit: function(toolbar, item) { if(!this.CustomComboBoxInit.IsEmpty()){ var args = new ASPxClientBarDockControlEventArgs(false, toolbar, item, null); this.CustomComboBoxInit.FireEvent(this, args); } }, UpdateItems: function(){ _aspxClearTimer(this.updateItemsTimerId); this.updateItemsTimerId = window.setTimeout(this.updateItemsTimerString, this.updateItemsTimeout); }, HideAllPopups: function(exeptToolbar, exeptItem){ var exeptId = exeptToolbar && exeptItem ? exeptToolbar.GetMenuElement(exeptItem.GetIndexPath()).id : ""; aspxGetMenuCollection().DoHidePopupMenus(null, 0, "", false, exeptId); for(var i = 0 ; i < this.toolbarsCount; i ++) { var toolBar = this.GetToolbarControl(i); if (toolBar) toolBar.HideTemplatesPopup(); } }, AdjustControls: function(){ if(!this.GetMainElement()) return; for(var i = 0 ; i < this.toolbarsCount; i ++) { var toolBar = this.GetToolbarControl(i); if (toolBar) { toolBar.AdjustControl(); toolBar.FixInputHeightIE(); } } } }); ASPxClientBarDockControlEventArgs = _aspxCreateClass(ASPxClientEventArgs, { constructor: function(processOnServer, toolbar, item, value){ this.constructor.prototype.constructor.call(this); this.item = item; this.toolbar = toolbar; this.value = value; } }); ASPxClientToolbarItem = _aspxCreateClass(ASPxClientMenuItem, { constructor: function(menu, parent, index, name){ this.constructor.prototype.constructor.call(this, menu, parent, index, name); this.itemTemplateControl = null; this.itemTextTemplateControl = null; }, SetValue: function(value){ var templateControl = this.GetTemplateControl(); if(templateControl){ templateControl.SetValue(value); } }, GetTemplateControl: function(){ var itemTemplate = this.GetItemTemplateControl(); if(itemTemplate) return itemTemplate; return this.GetItemTextTemplateControl(); }, GetItemTemplateControl: function(){ if(this.itemTemplateControl === null){ var templateContainer = this.menu.GetItemTemplateContainer(this.GetIndexPath()); this.itemTemplateControl = this.GetControlFromParentElement(templateContainer); } return this.itemTemplateControl; }, GetItemTextTemplateControl: function(){ if(this.itemTextTemplateControl === null){ var templateContainer = this.menu.GetItemTextTemplateContainer(this.GetIndexPath()); this.itemTextTemplateControl = this.GetControlFromParentElement(templateContainer); } return this.itemTextTemplateControl; }, GetControlFromParentElement: function(element){ if (element) { for(var i = 0; i < element.childNodes.length; i ++) { var childNode = element.childNodes[i]; if(!childNode.id) continue; var control = aspxGetControlCollection().Get(childNode.id); if (control) return control; } } return null; } }); ASPxClientToolbar = _aspxCreateClass(ASPxClientMenu, { constructor: function(name) { this.constructor.prototype.constructor.call(this, name); this.barDockControlName = ""; this.barDockControl = null; this.ItemUpdate = new ASPxClientEvent(); this.DropDownItemBeforeFocus = new ASPxClientEvent(); this.DropDownItemCloseUp = new ASPxClientEvent(); this.Command = new ASPxClientEvent(); this.CustomComboBoxInit = new ASPxClientEvent(); this.customDropDownItemsParams = {}; }, Initialize: function() { ASPxClientMenu.prototype.Initialize.call(this); if(this.NeedCorrectionForRtl()) this.rtlWidthCorrected = true; this.SetMenuUnselectable(); this.InitializeItemState(); }, NeedCorrectionForRtl: function() { return __aspxIE && __aspxBrowserMajorVersion < 8 && this.rtl; }, SetLightweightMenuHeightInIE7IfDisplayed: function() { if(this.NeedCorrectionForRtl() && !this.rtlWidthCorrected) return; ASPxClientMenu.prototype.SetLightweightMenuHeightInIE7IfDisplayed.call(this); }, InitializeItemState: function() { var element = this.GetItemTextCell(this.GetItem(0).GetIndexPath()); if (element != null) element = this.GetItemImageCell(this.GetItem(0).GetIndexPath()); this.SetHoverElement(element); this.SetHoverElement(null); if (this.itemCheckedGroups[0]) { this.SetItemChecked(this.itemCheckedGroups[0][0].toString(), true); this.SetItemChecked(this.itemCheckedGroups[0][0].toString(), false); } }, SetMenuUnselectable: function() { _aspxSetTimeout("aspxSetMenuUnselectableByTimer('" + this.name + "')", 0); }, GetToolbarDockControl: function() { if (this.barDockControl == null) this.barDockControl = aspxGetControlCollection().Get(this.barDockControlName); return this.barDockControl; }, GetClientItemType: function() { return ASPxClientToolbarItem; }, GetToolbatItemTemplateID: function(indexPath) { return this.GetItemByIndexPath(indexPath).name; }, GetToolbarItemTemplateId: function(indexPath) { var templateName = this.GetToolbatItemTemplateID(indexPath); return this.name + "_ITTCNT" + indexPath + "_" + templateName; }, GetToolbarItemTemplateElement: function(indexPath) { return _aspxGetElementById(this.GetToolbarItemTemplateId(indexPath)); }, GetToolbarItemTemplateControl: function(indexPath) { var templateElement = this.GetToolbarItemTemplateElement(indexPath); return templateElement ? aspxGetControlCollection().Get(this.GetToolbarItemTemplateId(indexPath)) : null; }, SetItemEnabled: function(indexPath, enabled) { ASPxClientMenu.prototype.SetItemEnabled.call(this, indexPath, enabled); var item = this.GetItemByIndexPath(indexPath); var templateControl = item.GetTemplateControl(); if (templateControl) { var templateElement = templateControl.GetMainElement(); if (enabled) aspxGetStateController().EnableElement(templateElement); else aspxGetStateController().DisableElement(templateElement); } }, HideTemplatesPopup: function() { for (var i = 0; i < this.GetItemCount(); i++) { var item = this.GetItem(i); var templateControl = item.GetTemplateControl(); if (templateControl) { if (templateControl.HideDropDownArea) templateControl.HideDropDownArea(true); } } }, DoUpdateItems: function() { for (var i = 0; i < this.GetItemCount(); i++) { var curItem = this.GetItem(i); this.RaiseItemUpdate(curItem); for (var j = 0; j < curItem.GetItemCount(); j++) this.RaiseItemUpdate(curItem.GetItem(j)); } }, OnTemplateItemValueChanged: function(itemName, itemValue, menuIndex) { var item = menuIndex ? this.GetItem(menuIndex) : this.GetItemByName(itemName); this.DoRaiseCommand(item.GetIndexPath(), itemValue); }, OnTemplateItemClick: function(itemName, itemValue) { var item = this.GetItemByName(itemName); this.DoRaiseCommand(item.GetIndexPath(), itemValue); }, OnDropDownItemBeforeFocus: function(itemName) { var item = this.GetItemByName(itemName); this.RaiseDropDownItemBeforeFocus(item); }, OnDropDownItemCloseUp: function(itemName) { var item = this.GetItemByName(itemName); this.RaiseDropDownItemCloseUp(item); }, DoRaiseCommand: function(indexPath, value) { var item = this.GetItemByIndexPath(indexPath); if(typeof(ASPxClientToolbarItemPicker) != "undefined") { var itemPicker = ASPxClientToolbarItemPicker.FindControlByMenuItem(item); if(itemPicker) if(itemPicker.useItemPickerImageMode == __aspxHEItemPickerImageMode.ExecuteSelectedItemAction) { if(value == null) { value = itemPicker.GetValue(); aspxGetMenuCollection().HideAll(); if(!value) return; } else this.UpdateMenuItem(item, itemPicker.GetText(), itemPicker.GetImage(), itemPicker.GetTooltip()); } else if(itemPicker.useItemPickerImageMode == __aspxHEItemPickerImageMode.ShowDropDown) { if(value == null) return; } } if(value == null) var customMenuItemParams = this.TryGetCustomMenuItemParams(item); if(customMenuItemParams) { this.DoRaiseCustomDropDownMenuCommand(item, customMenuItemParams); return; } this.RaiseCommand(item, value); }, DoRaiseCustomDropDownMenuCommand: function(item, customMenuItemParams) { if(this.IsFirstLevelItem(item)) { var valueItem = item.GetItem(customMenuItemParams.selectedItemIndex); if(customMenuItemParams.itemPickerMode == __aspxHEItemPickerImageMode.ExecuteSelectedItemAction) this.RaiseCommand(item, valueItem ? valueItem.name : null); else if(customMenuItemParams.itemPickerMode == __aspxHEItemPickerImageMode.ExecuteAction) this.RaiseCommand(item, null); } else { if(customMenuItemParams.itemPickerMode == __aspxHEItemPickerImageMode.ExecuteSelectedItemAction) { customMenuItemParams.selectedItemIndex = item.index; this.UpdateMenuItem(item.parent, item.GetText(), item.GetImage(), item.menu.GetItemElement(item.GetIndexPath()).title); } this.RaiseCommand(item.parent, item.name); } }, UpdateMenuItem: function(item, text, image, tooltip) { var itemElement = item.menu.GetItemElement(item.indexPath); var menuButtonCell = item.menu.GetItemTextOrImageCell(item.indexPath); if(!menuButtonCell) return; var menuButtonCellChilds = _aspxGetChildrenByPartialClassName(menuButtonCell, __aspxBarDockItemPickerButtonClassName); if(!menuButtonCellChilds || menuButtonCellChilds.length < 1) return; var menuButtonContainer = menuButtonCellChilds[0]; menuButtonContainer.title = tooltip; var menuButtonImg = _aspxGetChildByTagName(menuButtonContainer, "IMG", 0); if(item.menu.liteRender && item.indexPath == "0") var itemStartHeight = menuButtonCell.offsetHeight; tooltip = tooltip ? tooltip : text; if(image && image.src && menuButtonImg) { menuButtonContainer.innerHTML = ""; menuButtonContainer.appendChild(menuButtonImg); menuButtonImg.src = image.src; menuButtonImg.className = image && image.className || ""; menuButtonImg.alt = tooltip; menuButtonImg.title = tooltip; if(item.menu.liteRender) this.UpdateCustomDropDownItemClassName(itemElement, ASPxClientToolbarConsts.ClassNames.CustomDropDownImageItem); _aspxSetElementDisplay(menuButtonImg, true); } else { menuButtonContainer.innerHTML = text; if(item.menu.liteRender) this.UpdateCustomDropDownItemClassName(itemElement, ASPxClientToolbarConsts.ClassNames.CustomDropDownTextItem); if(menuButtonImg) { menuButtonContainer.appendChild(menuButtonImg); _aspxSetElementDisplay(menuButtonImg, false); } } if(itemStartHeight && itemStartHeight != menuButtonCell.offsetHeight) ASPxClientMenuLiteRenderHelper.PrepareSpacingAndSeparators(item.menu, item.menu.GetMainElement()); }, UpdateCustomDropDownItemClassName: function(element, className) { if(!_aspxElementCssClassContains(element, className)) { var oppositeClassName = className == ASPxClientToolbarConsts.ClassNames.CustomDropDownImageItem ? ASPxClientToolbarConsts.ClassNames.CustomDropDownTextItem : ASPxClientToolbarConsts.ClassNames.CustomDropDownImageItem; element.className = element.className.replace(oppositeClassName, className); } }, IsFirstLevelItem: function(item) { return (item.parent && item.parent.GetIndexPath() == ""); }, TryGetCustomMenuItemParams: function(item) { if(this.IsFirstLevelItem(item)) return this.GetCustomMenuItemParams(item); else return this.GetCustomMenuItemParams(item.parent); }, GetCustomMenuItemParams: function(item) { var indexPath = item.GetIndexPath(); return this.customDropDownItemsParams[indexPath]; }, RaiseItemClick: function(indexPath, htmlEvent) { this.DoRaiseCommand(indexPath, null); if (ASPxClientMenu.prototype.RaiseItemClick) ASPxClientMenu.prototype.RaiseItemClick.call(this, indexPath, htmlEvent); }, RaiseCommand: function(item, value) { if (!this.Command.IsEmpty()) { var args = new ASPxClientToolbarEventArgs(item, value); this.Command.FireEvent(this, args); } }, RaiseItemUpdate: function(item) { if (!this.ItemUpdate.IsEmpty()) { var args = new ASPxClientToolbarEventArgs(item, null); this.ItemUpdate.FireEvent(this, args); } }, RaiseDropDownItemBeforeFocus: function(item) { if (!this.DropDownItemBeforeFocus.IsEmpty()) { var args = new ASPxClientToolbarEventArgs(item, null); this.DropDownItemBeforeFocus.FireEvent(this, args); } }, RaiseDropDownItemCloseUp: function(item) { if (!this.DropDownItemCloseUp.IsEmpty()) { var args = new ASPxClientToolbarEventArgs(item, null); this.DropDownItemCloseUp.FireEvent(this, args); } }, UpdateItems: function() { this.DoUpdateItems(); }, InitCustomComboBox: function(combobox) { this.RaiseCustomComboBoxInit(combobox); }, RaiseCustomComboBoxInit: function(combobox) { var args = new ASPxClientToolbarEventArgs(combobox, null); this.CustomComboBoxInit.FireEvent(this, args); }, FixInputHeightIE: function() { if(__aspxIE && __aspxBrowserMajorVersion > 8) { var toolbarInputs = _aspxGetElementsByTagName(this.GetMainElement(), 'input'); for(var i = 0, input; input = toolbarInputs[i]; i++) { if(input.type == 'text') input.style.height = input.offsetHeight + 'px'; } } } }); ASPxClientToolbarEventArgs = _aspxCreateClass(ASPxClientEventArgs, { constructor: function(item, value){ this.constructor.prototype.constructor.call(this); this.item = item; this.value = value; } }); ASPxClientToolbarColorButton = _aspxCreateClass(ASPxClientControl, { constructor: function(name){ this.constructor.prototype.constructor.call(this, name); this.colorDiv = null; this.colorPicker = null; this.colorPickerName = ""; this.colorPickerLockCount = 0; this.defaultColor = ""; this.ColorChanged = new ASPxClientEvent(); this.isEmptyColor = false; }, Initialize: function(){ this.constructor.prototype.Initialize.call(this); _aspxSetElementAsUnselectable(this.GetColorDiv()); }, GetColorDiv: function(){ if(this.colorDiv == null) this.colorDiv = _aspxGetElementById(this.name + "_CD"); return this.colorDiv; }, ColorDegToHex: function(color){ var str = color.toString(16); var length = str.length; for (var i = str.length; i < 6; i ++ ) str = "0" + str; return "#" + str; }, GetColor: function(){ var colorDiv = this.GetColorDiv(); var color = null; if(!this.isEmptyColor){ var currStyle = _aspxGetCurrentStyle(colorDiv); color = currStyle ? currStyle.backgroundColor : colorDiv.style.backgroundColor; } return _aspxColorToHexadecimal(color); }, SetColor: function(color){ this.isEmptyColor = false; if(color == null) { this.isEmptyColor = true; color = this.defaultColor; } var colorDiv = this.GetColorDiv(); colorDiv.style.backgroundColor = color; this.SetColorPickerColor(); }, SetColorPickerColor: function(){ if(this.colorPickerLockCount == 0){ var colorPicker = this.GetColorPicker(); if(colorPicker) colorPicker.SetColor(this.GetColor()); } }, GetValue: function(){ return this.GetColor(); }, SetValue: function(color){ this.SetColor(color); }, GetColorPicker: function(){ if(!this.colorPicker) this.colorPicker = aspxGetControlCollection().Get(this.colorPickerName); return this.colorPicker; }, OnColorPickerInit: function (colorPicker){ this.colorPicker = colorPicker; this.colorPickerName = colorPicker.name; colorPicker.SetColor(this.GetColor()); var method = new Function("sender", "args", "aspxTBCPColorItemClick(\"" + this.name + "\", sender, args);"); colorPicker.ItemClick.AddHandler(method); }, OnColorPickerColorItemClick: function(){ aspxGetMenuCollection().HideAll(); this.RaiseColorChanged(); }, OnColorPickerColorChanged: function (color){ this.colorPickerLockCount ++; this.SetValue(color); this.colorPickerLockCount --; }, RaiseColorChanged: function(){ if(!this.ColorChanged.IsEmpty()){ var args = new ASPxClientEventArgs(); this.ColorChanged.FireEvent(this, args); } } }); function aspxBDUpdateItemsByTimer(name){ var control = aspxGetControlCollection().Get(name); if(control) control.DoUpdateItems(); } function aspxSetMenuUnselectableByTimer(name){ var toolbar = aspxGetControlCollection().Get(name); if(toolbar){ for (var i = 0; i < toolbar.GetItemCount(); i++) { var curItem = toolbar.GetItem(i); aspxSetMenuItemUnselectable(toolbar, curItem.GetIndexPath()); for (var j = 0; j < curItem.GetItemCount(); j++) aspxSetMenuItemUnselectable(toolbar, curItem.GetItem(j).GetIndexPath()); } } } function aspxSetMenuItemUnselectable(parent, indexPath) { _aspxSetElementAsUnselectable(parent.GetItemTextCell(indexPath), true); _aspxSetElementAsUnselectable(parent.GetItemImageCell(indexPath)); _aspxSetElementAsUnselectable(parent.GetItemIndentCell(indexPath)); _aspxSetElementAsUnselectable(parent.GetItemTemplateCell(indexPath)); _aspxSetElementAsUnselectable(parent.GetItemPopOutImageCell(indexPath)); _aspxSetElementAsUnselectable(parent.GetMenuBorderCorrectorElement(indexPath)); _aspxSetElementAsUnselectable(parent.GetItemIndentElement(indexPath), true); _aspxSetElementAsUnselectable(parent.GetItemSeparatorElement(indexPath), true); _aspxSetElementAsUnselectable(parent.GetItemSeparatorIndentElement(indexPath), true); } function aspxToolbarCommand(toolbar, item, value){ var control = toolbar.GetToolbarDockControl(); if(control) control.OnCommand(toolbar, item, value); } function aspxToolbarItemUpdate(toolbar, item){ var control = toolbar.GetToolbarDockControl(); if(control) control.OnItemUpdate(toolbar, item); } function aspxToolbarDropDownItemBeforeFocus(toolbar, item){ var control = toolbar.GetToolbarDockControl(); if(control) control.OnDropDownItemBeforeFocus(toolbar, item); } function aspxToolbarDropDownItemCloseUp(toolbar, item){ var control = toolbar.GetToolbarDockControl(); if(control) control.OnDropDownItemCloseUp(toolbar, item); } function aspxToolbarPopup(toolbar, e){ var control = toolbar.GetToolbarDockControl(); if(control) control.OnPopup(toolbar, e); } function aspxToolbarCustomComboBoxInit(toolbar, e) { var control = toolbar.GetToolbarDockControl(); if(control) control.OnToolbarCustomComboBoxInit(toolbar, e.item); } function aspxTBCPInit(name, s){ var control = aspxGetControlCollection().Get(name); if(control != null) control.OnColorPickerInit(s); } function aspxTBCPColorChanged(name, color){ var control = aspxGetControlCollection().Get(name); if(control != null) control.OnColorPickerColorChanged(color); } function aspxTBCPColorItemClick(name){ var control = aspxGetControlCollection().Get(name); if(control != null) control.OnColorPickerColorItemClick(); } function aspxTBCBBeforeFocus(toolbarName, itemName){ var bar = aspxGetControlCollection().Get(toolbarName); if(bar) bar.OnDropDownItemBeforeFocus(itemName); } function aspxTBCBCloseUp(toolbarName, itemName){ var bar = aspxGetControlCollection().Get(toolbarName); if(bar) bar.OnDropDownItemCloseUp(itemName); } function aspxTBCBValueChanged(toolbarName, itemName, itemValue){ var bar = aspxGetControlCollection().Get(toolbarName); if(bar) bar.OnTemplateItemValueChanged(itemName, itemValue); } function aspxTBCBItemClick(toolbarName, itemName, itemValue){ var bar = aspxGetControlCollection().Get(toolbarName); if(bar) bar.OnTemplateItemClick(itemName, itemValue); } function aspxTBColorButtonValueChanged(toolbarName, itemName, itemValue){ var bar = aspxGetControlCollection().Get(toolbarName); if(bar) bar.OnTemplateItemValueChanged(itemName, itemValue); } function aspxTBItemPickerItemClick(toolbarName, itemName, itemValue, menuIndex){ var bar = aspxGetControlCollection().Get(toolbarName); if(bar) bar.OnTemplateItemValueChanged(itemName, itemValue, menuIndex); } function aspxTBCCBInit(toolbarName, combobox) { var bar = aspxGetControlCollection().Get(toolbarName); if(bar) bar.InitCustomComboBox(combobox); } function aspxHEToolbarCommand(heControlName, item, value){ var heControl = aspxGetControlCollection().Get(heControlName); if(heControl) heControl.ExecuteCommand(item.name, value); } function aspxHEToolbarItemUpdate(heControlName, toolbar, item){ if(item == "") return; var heControl = aspxGetControlCollection().Get(heControlName); if(heControl){ var commandName = item.name; var command = ASPxHtmlEditorCommandList[commandName]; if(command){ var isLocked = command.IsLocked(heControl); var isChecked = command.GetState(heControl); item.SetEnabled(!isLocked); aspxProcessToolbarItemTemplate(item, !isLocked); item.SetChecked(isLocked ? false : isChecked); if(!isLocked) item.SetValue(command.GetValue(heControl)); } } } function aspxHEToolbarDropDownItemBeforeFocus(heControlName, toolbar, item){ if(item == "") return; var heControl = aspxGetControlCollection().Get(heControlName); if(heControl != null) heControl.SaveSelectionForPopup(); } function aspxHEToolbarDropDownItemCloseUp(heControlName, toolbar, item){ if(item == "") return; var heControl = aspxGetControlCollection().Get(heControlName); if(heControl != null) heControl.OnToolbarDropDownItemCloseUp(); } function aspxHEToolbarCustomComboBoxInit(heControlName, toolbar, item) { if(item == "") return; var heControl = aspxGetControlCollection().Get(heControlName); if(heControl != null) heControl.OnToolbarCustomComboBoxInit(item); } function aspxProcessToolbarItemTemplate(item, enabled) { var clientInstance = item.GetTemplateControl(); if(clientInstance && clientInstance.SetEnabled) clientInstance.SetEnabled(enabled); } } /* playback timings (ms): CDXLines.iter: 25.347 (3) exclusion.robots: 0.26 captures_list: 177.107 RedisCDXSource: 1.712 esindex: 0.155 load_resource: 33.998 PetaboxLoader3.datanode: 136.826 (4) LoadShardBlock: 143.778 (3) exclusion.robots.policy: 0.243 */