From 0ea0902059cbcc049b2ec2675512e41a057372dd Mon Sep 17 00:00:00 2001 From: Instrye Date: Thu, 1 Mar 2018 17:05:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Admi=20n=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E6=96=87=E4=BB=B6=E7=9A=84JS=E9=94=99?= =?UTF-8?q?=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 +})