* zin: support to load current modal more conveniently.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user