From 16738ff333543c3bbb87155d98d209cf4b0c523e Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 22 Oct 2020 10:26:09 +0800 Subject: [PATCH] Update admin.js --- public/static/admin.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/static/admin.js b/public/static/admin.js index 5d7775052..a36dc8712 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -702,8 +702,9 @@ $(function () { /*! 注册 data-iframe 事件行为 */ $body.on('click', '[data-iframe]', function () { - var width = this.dataset.width || '800px', height = this.dataset.height || '580px'; - $(this).attr('data-index', $.form.iframe(this.dataset.iframe, this.dataset.title || '窗口', this.dataset.area || [width, height])); + $(this).attr('data-index', $.form.iframe(this.dataset.iframe, this.dataset.title || '窗口', this.dataset.area || [ + this.dataset.width || '800px', this.dataset.height || '580px' + ])); }); /*! 注册 data-icon 事件行为 */