diff --git a/public/static/admin.js b/public/static/admin.js index 741fe1e6a..be4ea1410 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -983,7 +983,7 @@ $(function () { onEvent('click', '[data-modal]', function () { var un = undefined, emap = this.dataset, data = {open_type: 'modal'}; return applyRuleValue(this, data, function () { - return $.form.modal(emap.modal, data, emap.title || this.innerText || '编辑', un, un, un, emap.area || emap.width || '800px', emap.offset || 'auto', emap.full !== un); + return $.form.modal(emap.modal, data, emap.title || this.innerText || '编辑', un, un, un, (typeof emap.area === 'string' ? eval("(" + emap.area + ")") : undefined) || emap.width || '800px', emap.offset || 'auto', emap.full !== un); }) });