* zin: support to load current modal more conveniently.

This commit is contained in:
sunhao
2023-07-18 17:09:13 +08:00
parent 4a804d9697
commit ad9d51e7f1
+1
View File
@@ -588,6 +588,7 @@
{
options = $.extend({url}, options);
if(!target) return zui.Modal.open(options);
else if(target === 'current') target = zui.Modal.query().id;
if(target[0] !== '#' && target[0] !== '.') target = `#${target}`;
const modal = zui.Modal.query(target);