--- loncom/homework/structuretags.pm 2014/09/15 17:45:35 1.521 +++ loncom/homework/structuretags.pm 2014/09/16 13:28:30 1.522 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.521 2014/09/15 17:45:35 raeburn Exp $ +# $Id: structuretags.pm,v 1.522 2014/09/16 13:28:30 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -283,11 +283,15 @@ $(document).ready(function(){ submithandled = 1; $( "#msg_"+buttonId ).css({"display": "inline","background-color": "#87cefa", "color": "black","padding": "2px"}) ; - $( ".LC_status_"+buttonId ).hide(); if (( $(this.form).id == "LC_page" ) && ($('input[name="all_submit"]').length )) { - if (( "#"+buttonId+"_pressed" ).length) { - $( "#"+buttonId+"_pressed" ).val( "1" ); + if (buttonId != "all_submit") { + $( ".LC_status_"+buttonId ).hide(); + if (( "#"+buttonId+"_pressed" ).length) { + $( "#"+buttonId+"_pressed" ).val( "1" ); + } } + } else { + $( ".LC_status_"+buttonId ).hide(); } $(this.form).submit(); $( ".LC_hwk_submit" ).prop( "disabled", true); @@ -299,7 +303,6 @@ $(document).ready(function(){ }); }); - // ]]> JS