From 60931f49c1eb461cffc11a3e4b4e1df3a5a41463 Mon Sep 17 00:00:00 2001 From: "BestNa.me Labs" Date: Mon, 21 Mar 2016 21:00:04 +0100 Subject: [PATCH] Re-enable cancel on exiting edit_link_save() Fixes a flaw in `edit_link_save()` in insert.js: On exit, `edit_link_save()` correctly ends the loading state of the cancel button (i.e. the element with id `edit-close-y...`), but leaves the element disabled. This gets evident if and only if the ajax call (`action=edit_save`) returns with a `status` of `fail`, since only then the edit row with the disabled cancel button will not be faded out. --- js/insert.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/insert.js b/js/insert.js index 6dde0a4..0fe2a2e 100644 --- a/js/insert.js +++ b/js/insert.js @@ -163,6 +163,7 @@ 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'); } ); -- 2.42.0