From: Tara L Andrews Date: Tue, 13 Aug 2013 19:21:18 +0000 (+0200) Subject: Show the stemma edit button once a stemma has been saved. Fixes #20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1acbd103648a939e82ff5bc0c58d30492e59fdcb;p=scpubgit%2Fstemmaweb.git Show the stemma edit button once a stemma has been saved. Fixes #20 --- diff --git a/root/js/componentload.js b/root/js/componentload.js index da3ad7f..9c10c96 100644 --- a/root/js/componentload.js +++ b/root/js/componentload.js @@ -397,6 +397,8 @@ $(document).ready( function() { stemmata[selectedStemmaID] = data.stemmasvg; // Display the new stemma load_stemma( selectedStemmaID ); + // Show the edit button, in case this was the first new stemma + $('#open_stemma_edit').show(); // Reenable the button and close the form $(evt.target).button("enable"); $('#stemma-edit-dialog').dialog('close');