]> CyberLeo.Net >> Repos - Github/YOURLS.git/commit
Re-enable cancel on exiting edit_link_save()
authorBestNa.me Labs <info@bestna.me>
Mon, 21 Mar 2016 20:00:04 +0000 (21:00 +0100)
committerBestNa.me Labs <info@bestna.me>
Mon, 21 Mar 2016 20:00:04 +0000 (21:00 +0100)
commit60931f49c1eb461cffc11a3e4b4e1df3a5a41463
treefe1469f3fa064b58ce89bbdeb4bfa86370d23d14
parent1481bef4ef0ad2686b80db1d9982e29df96086c8
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