diff --git a/src/main/webapp/resources/js/base/base.js b/src/main/webapp/resources/js/base/base.js index 20c93c21..b2d67c1f 100644 --- a/src/main/webapp/resources/js/base/base.js +++ b/src/main/webapp/resources/js/base/base.js @@ -121,9 +121,8 @@ var dialog = { create:function(conf) { let last = { dlg: $("div.modal.show").last()[0], - exists: () => last.dlg, setZIndex: (obj, offset) => { - if (!last.exists()) return; + if (!last.dlg) return; let zIndex = Number($(last.dlg).css("z-index")); obj.css("z-index", zIndex + offset);