Current Path : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/landing/ui/tool/ |
Current File : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/landing/ui/tool/popup.js |
;(function() { "use strict"; BX.namespace("BX.Landing.UI.Tool"); var isString = BX.Landing.Utils.isString; var isEmpty = BX.Landing.Utils.isEmpty; var addClass = BX.Landing.Utils.addClass; /** * Implements interface for works with BX.PopupWindow * @extends {BX.PopupWindow} * @param {object} options * @constructor * * @deprecated Do not use it * @see BX.Main.Popup */ BX.Landing.UI.Tool.Popup = function(options) { options.bindElement = options.bindElement || null; BX.PopupWindow.apply(this, [options.id, options.bindElement, options]); addClass(this.popupContainer, "landing-ui-popup"); if (!isEmpty(options.className) && isString(options.className)) { addClass(this.popupContainer, options.className); } }; BX.Landing.UI.Tool.Popup.prototype = { constructor: BX.Landing.UI.Tool.Popup, __proto__: BX.PopupWindow.prototype, show: function() { BX.PopupWindow.prototype.show.call(this); return Promise.resolve(); }, close: function() { BX.PopupWindow.prototype.close.call(this); return Promise.resolve(); } } })();