From 3db7ebd906c03c2aa08518e33f17b47368e51897 Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 12 Nov 2020 15:28:28 +0800 Subject: [PATCH] Update admin.js --- public/static/admin.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/public/static/admin.js b/public/static/admin.js index f5862b3a8..ee5068931 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -668,9 +668,10 @@ $(function () { }); /*! 注册 data-iframe 事件行为 */ - $body.on('click', '[data-iframe]', function (index) { - index = $.form.iframe($(this).attr('data-iframe'), $(this).attr('data-title') || '窗口'); - $(this).attr('data-index', index); + $body.on('click', '[data-iframe]', function () { + $(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 事件行为 */