Index: lams_tool_larsrc/web/pages/learning/addfile.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/learning/addfile.jsp,v diff -u -r1.17.2.4 -r1.17.2.5 --- lams_tool_larsrc/web/pages/learning/addfile.jsp 2 Dec 2016 22:06:21 -0000 1.17.2.4 +++ lams_tool_larsrc/web/pages/learning/addfile.jsp 16 Feb 2017 00:43:03 -0000 1.17.2.5 @@ -55,7 +55,7 @@   - + Index: lams_tool_larsrc/web/pages/learning/addurl.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/learning/addurl.jsp,v diff -u -r1.18.4.5 -r1.18.4.6 --- lams_tool_larsrc/web/pages/learning/addurl.jsp 23 Jan 2017 04:50:08 -0000 1.18.4.5 +++ lams_tool_larsrc/web/pages/learning/addurl.jsp 16 Feb 2017 00:43:03 -0000 1.18.4.6 @@ -36,7 +36,7 @@   - + Index: lams_tool_larsrc/web/pages/learning/learning.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/learning/learning.jsp,v diff -u -r1.53.2.7 -r1.53.2.8 --- lams_tool_larsrc/web/pages/learning/learning.jsp 2 Dec 2016 09:14:19 -0000 1.53.2.7 +++ lams_tool_larsrc/web/pages/learning/learning.jsp 16 Feb 2017 00:43:03 -0000 1.53.2.8 @@ -32,8 +32,8 @@ }); function submitResourceForm() { - debugger; if ( $(this).valid() ) { + $('.btn-disable-on-submit').prop('disabled', true); var formData = new FormData(this); $.ajax({ // create an AJAX call... data: formData, @@ -43,14 +43,13 @@ url: $(this).attr('action'), // the file to call success: function (response) { $('#addresource').html(response); - if ( itemType == 1) - setFormURL(); - else if ( itemType == 2) - setFormFile(); }, error: function (jqXHR, textStatus, errorThrown ) { alert(textStatus+": "+errorThrown); }, + complete: function(response) { + $('.btn-disable-on-submit').prop('disabled', false); + } }); } return false; @@ -84,6 +83,7 @@ $("#sessionMapID").val("${sessionMapID}"); } function cancel(){ + $('.btn-disable-on-submit').prop('disabled', false); $("#addresource").html(''); } @@ -97,11 +97,12 @@ launchPopup(myUrl,"LearnerView"); } function finishSession(){ - document.getElementById("finishButton").disabled = true; + $('.btn-disable-on-submit').prop('disabled', true); document.location.href =''; return false; } function continueReflect(){ + $('.btn-disable-on-submit').prop('disabled', true); document.location.href=''; } @@ -242,7 +243,7 @@ - + @@ -256,13 +257,13 @@ + onclick="return continueReflect()" styleClass="btn btn-default voffset5 pull-right btn-disable-on-submit"> - + Index: lams_tool_larsrc/web/pages/learning/notebook.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/pages/learning/notebook.jsp,v diff -u -r1.15.2.2 -r1.15.2.3 --- lams_tool_larsrc/web/pages/learning/notebook.jsp 16 Mar 2016 01:57:43 -0000 1.15.2.2 +++ lams_tool_larsrc/web/pages/learning/notebook.jsp 16 Feb 2017 00:43:03 -0000 1.15.2.3 @@ -12,10 +12,6 @@ function disableFinishButton() { document.getElementById("finishButton").disabled = true; } - function submitForm(methodName){ - var f = document.getElementById('reflectionForm'); - f.submit(); - } @@ -36,11 +32,10 @@

- +
- +