|
From: S C. <sl...@us...> - 2008-03-05 17:17:13
|
Update of /cvsroot/strandmapservic/nsdl-client-project/web/js In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv25565/web/js Modified Files: nsdlclientsms.js Log Message: Provide feedback that the resource is submitting in case form is slow Index: nsdlclientsms.js =================================================================== RCS file: /cvsroot/strandmapservic/nsdl-client-project/web/js/nsdlclientsms.js,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** nsdlclientsms.js 29 Feb 2008 23:29:06 -0000 1.5 --- nsdlclientsms.js 5 Mar 2008 17:17:09 -0000 1.6 *************** *** 172,176 **** var subjects = ''; - for(var i=1;i<=6;i++){ if(document.getElementById('subject_'+i).checked == true){ --- 172,175 ---- *************** *** 205,208 **** --- 204,210 ---- { method: 'post', + onLoading: function() { + recommendTab.setContent('Submitting resource...'); + }, onComplete: function () { refreshForm(resUrl); *************** *** 212,216 **** function refreshForm(resUrl){ var reqUrl = "bubble/recommender.jsp?url=" +resUrl; - recommendTab.setContent('Loading...'); new Ajax.Request( reqUrl, --- 214,217 ---- |