Improve scrollbars and modal size

This commit is contained in:
yflory
2020-04-06 11:42:47 +02:00
parent 18a4d2a72c
commit 35394476a6
10 changed files with 73 additions and 76 deletions

View File

@@ -473,6 +473,7 @@ define([
var hide = function () {
if (cfg.onClose) { return void cfg.onClose(); }
$blockContainer.hide();
if (cfg.onClosed) { cfg.onClosed(); }
};
$blockContainer.html('').appendTo($body);
var $block = $(h('div.cp-modal')).appendTo($blockContainer);
@@ -488,7 +489,13 @@ define([
hide();
}
});
return $blockContainer;
return {
$modal: $blockContainer,
show: function () {
$blockContainer.css('display', 'flex');
},
hide: hide
};
};
UI.alert = function (msg, cb, opt) {