X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2Fstemmatology.git;a=blobdiff_plain;f=stemmaweb%2Froot%2Fjs%2Frelationship.js;h=cd3d867d0ed8ed8d01c2470ff8a913cba3f2cd5f;hp=a2b242d47e24fc992aea89bdb8904c37152e0bd4;hb=a1411d50483bfd6cc561d7f8d81941cd6d6f61a9;hpb=ab06f3edf9045dc9a24ee138df7ae0b9bb141098 diff --git a/stemmaweb/root/js/relationship.js b/stemmaweb/root/js/relationship.js index a2b242d..cd3d867 100644 --- a/stemmaweb/root/js/relationship.js +++ b/stemmaweb/root/js/relationship.js @@ -772,9 +772,11 @@ $(document).ready(function () { 'normal_form': $('#reading_normal_form').val() }; // Add the morphology values $('.reading_morphology').each( function() { - var rmid = $(this).attr('id'); - rmid = rmid.substring(8); - form_values[rmid] = $(this).val(); + if( $(this).val() != '(Click to select)' ) { + var rmid = $(this).attr('id'); + rmid = rmid.substring(8); + form_values[rmid] = $(this).val(); + } }); // Make the JSON call ncpath = getReadingURL( reading_id ); @@ -803,6 +805,7 @@ $(document).ready(function () { $("#dialog_overlay").height( $("#enlargement_container").height() ); $("#dialog_overlay").width( $("#enlargement_container").innerWidth() ); $("#dialog_overlay").offset( $("#enlargement_container").offset() ); + $("#reading-form").parent().find('.ui-button').button("enable"); }, close: function() { $("#dialog_overlay").hide();