From e1fc7acd3b499b6acbcc2c236118328961b19090 Mon Sep 17 00:00:00 2001 From: Devil Date: Tue, 5 Jan 2021 19:01:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=92=E4=BB=B6=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/view/default/pluginsadmin/index.html | 4 ++-- public/static/admin/default/js/pluginsadmin.js | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/application/admin/view/default/pluginsadmin/index.html b/application/admin/view/default/pluginsadmin/index.html index 7dbb4e404..58b9af335 100755 --- a/application/admin/view/default/pluginsadmin/index.html +++ b/application/admin/view/default/pluginsadmin/index.html @@ -46,9 +46,9 @@ {{/if}} - + - + diff --git a/public/static/admin/default/js/pluginsadmin.js b/public/static/admin/default/js/pluginsadmin.js index f93adab2b..759121da5 100644 --- a/public/static/admin/default/js/pluginsadmin.js +++ b/public/static/admin/default/js/pluginsadmin.js @@ -8,6 +8,17 @@ $(function() $modal.modal('open'); }); + // 插件设置事件 + $('.plugins-set-event').on('click', function() + { + if($(this).parents('.am-gallery-item').hasClass('am-active')) + { + Prompt('请先点击勾勾启用'); + } else { + window.location.href = $(this).data('set-url'); + } + }); + // 拖拽 $('.content ul.am-gallery-bordered').dragsort({ dragSelector: 'button.submit-move', placeHolderTemplate: '
  • '});