Current Path : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/landing/ui/button/ |
Current File : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/landing/ui/button/copy_table.min.js |
(function(){"use strict";BX.namespace("BX.Landing.UI.Button");BX.Landing.UI.Button.CopyTable=function(t,n){BX.Landing.UI.Button.EditorAction.apply(this,arguments);this.editPanel=null;this.options=n};BX.Landing.UI.Button.CopyTable.prototype={constructor:BX.Landing.UI.Button.CopyTable,__proto__:BX.Landing.UI.Button.EditorAction.prototype,onClick:function(t){t.preventDefault();t.stopPropagation();var n=false;if(this.options){BX.Event.EventEmitter.emit("BX.Landing.TableEditor:onCopyTable");top.window.copiedTable=this.options.table.parentElement.cloneNode(true);if(top.window.copiedTable){n=true}}if(n){BX.UI.Notification.Center.notify({content:BX.Landing.Loc.getMessage("LANDING_TITLE_OF_EDITOR_ACTION_TABLE_COPIED")})}else{BX.UI.Notification.Center.notify({content:BX.Landing.Loc.getMessage("LANDING_TITLE_OF_EDITOR_ACTION_TABLE_NOT_COPIED")})}}}})(); //# sourceMappingURL=copy_table.map.js