Permalink
Browse files

Merge pull request #2069 from BstName/fix

Re-enable actions only if edit-save succeeded
  • Loading branch information...
ozh committed Mar 22, 2016
2 parents 2f9e0c1 + af866b3 commit b229b6145ef5231a9a69a03a5f4efdce9af23706
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/insert.js
View
@@ -164,7 +164,9 @@ function edit_link_save(id) {
feedback(data.message, data.status);
end_loading("#edit-close-" + id);
end_disable("#edit-close-" + id);
- end_disable("#actions-" + id + ' .button');
+ if(data.status == 'success') {
+ end_disable("#actions-" + id + ' .button');
+ }
}
);
}

0 comments on commit b229b61

Please sign in to comment.