aboutsummaryrefslogtreecommitdiff
path: root/data/assets/js/admin/dialogs/post-edit.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/assets/js/admin/dialogs/post-edit.js')
-rw-r--r--data/assets/js/admin/dialogs/post-edit.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/data/assets/js/admin/dialogs/post-edit.js b/data/assets/js/admin/dialogs/post-edit.js
index 3b20c7a..9d90b99 100644
--- a/data/assets/js/admin/dialogs/post-edit.js
+++ b/data/assets/js/admin/dialogs/post-edit.js
@@ -109,15 +109,7 @@ jQuery(function($) {
$(p + 'confirm').removeClass('disabled')
.find('.loading').toggleClass('hidden');
}).fail(function(r) {
- var error = r.responseText;
-
- try {
- var data = $.parseJSON(r.responseText);
- if (data.error)
- error = data.error;
- } catch (e) {}
-
- alert('Error: ' + error);
+ gripe(r, 'save changes');
}).done(function(r) {
// reload posts
$('#posts-reload').click();