From 0c2d54c6159cf4b9e4c93e43c18ad4d08bf54faf Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 29 Jul 2016 17:10:50 -0400 Subject: enable generate secret button and add gripe() --- data/assets/js/admin/dialogs/post-edit.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'data/assets/js/admin/dialogs/post-edit.js') 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(); -- cgit v1.2.3