Merge pull request #33 from Instrye/patch-1

修复 Admin删除分享文件的JS错误
This commit is contained in:
AaronLiu 2018-03-01 17:07:23 +08:00 committed by GitHub
commit a82bee0216
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";
});
})
})