From 0ea0902059cbcc049b2ec2675512e41a057372dd Mon Sep 17 00:00:00 2001 From: Instrye Date: Thu, 1 Mar 2018 17:05:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Admi=20n=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=88=86=E4=BA=AB=E6=96=87=E4=BB=B6=E7=9A=84JS?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 JQuery 获取 delete 对象错误 --- static/js/admin/shares.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/admin/shares.js b/static/js/admin/shares.js index 7a8dee34..612a78d4 100644 --- a/static/js/admin/shares.js +++ b/static/js/admin/shares.js @@ -32,7 +32,7 @@ $("#order").children().click(function() { $.cookie('orderMethodShare', $(this).children().attr("data-method")); location.href = "/Admin/Shares?page=1"; }) -$("[data-action='delete'").click(function() { +$("[data-action='delete']").click(function() { var shareId = $(this).attr("data-id"); $(this).attr("disabled", "true"); var thisObj = $(this); @@ -79,4 +79,4 @@ $("#delAll").click(function(){ }, function(data) { location.href = "/Admin/Shares?page=1"; }); -}) \ No newline at end of file +}) From 4b58719e7cb2f11b369f44a6ab5cdd0b815fcd24 Mon Sep 17 00:00:00 2001 From: Instrye Date: Thu, 1 Mar 2018 17:24:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20JS=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=20change=20=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/admin/shares.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/admin/shares.js b/static/js/admin/shares.js index 612a78d4..b319d37e 100644 --- a/static/js/admin/shares.js +++ b/static/js/admin/shares.js @@ -50,7 +50,7 @@ $("[data-action='delete']").click(function() { } }); }) -$("[data-action='change'").click(function() { +$("[data-action='change']").click(function() { var shareId = $(this).attr("data-id"); $(this).attr("disabled", "true"); var thisObj = $(this);