Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
johnitvn committed Jul 8, 2015
1 parent a6db2dd commit e482701
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions assets/ajaxcrud.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@
$.ajax({
url: $(this).attr("href"),
method:$(this).attr("data-method"),
error:function(request){
alert(request.responseText);
},
success:function(){
reloadGridView();
closeModal();
Expand Down Expand Up @@ -246,6 +249,9 @@
url: $(bulkDeleteActionButtonCls).attr("href"),
method:$(bulkDeleteActionButtonCls).attr("data-method"),
data:{pks:JSON.stringify(selectedIds)},
error:function(request){
alert(request.responseText);
},
success:function(){
reloadGridView();
closeModal();
Expand Down Expand Up @@ -277,6 +283,9 @@
url:$(form).attr('action'),
method:$(form).attr('method'),
data:$(form).serialize(),
error:function(request){
alert(request.responseText);
},
success:function(response){
if(response.code==200){
reloadGridView();
Expand Down Expand Up @@ -307,6 +316,9 @@
url:$(form).attr('action'),
method:$(form).attr('method'),
data:$(form).serialize(),
error:function(request){
alert(request.responseText);
},
success:function(response){
if(response.code==200){
reloadGridView();
Expand Down
2 changes: 1 addition & 1 deletion assets/ajaxcrud.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e482701

Please sign in to comment.