diff --git a/www/extras/wobject/Survey/administersurvey.js b/www/extras/wobject/Survey/administersurvey.js index 598c16be9..f28f7f55e 100644 --- a/www/extras/wobject/Survey/administersurvey.js +++ b/www/extras/wobject/Survey/administersurvey.js @@ -23,7 +23,7 @@ Survey.Form = new function() { var sliders; - this.submittimer; +// this.submittimer; this.displayQuestions = function(params){ @@ -374,7 +374,7 @@ Survey.Form = new function() { var qsize = objs[4]; var aid = objs[5]; max = parseFloat(max); - clearTimeout(Survey.Form.submittimer); +// clearTimeout(Survey.Form.submittimer); if(maxA == 1){ if(b.className == 'mcbutton-selected'){ document.getElementById(b.hid).value = 0; @@ -415,11 +415,13 @@ Survey.Form = new function() { // document.getElementById(qid+'max').innerHTML = parseFloat(max+1); document.getElementById(b.hid).value = ''; } +/* if(qsize == 1 && b.className == 'mcbutton-selected'){ if(! document.getElementById(aid+'verbatim')){ Survey.Form.submittimer=setTimeout("Survey.Form.formsubmit()",500); } } +*/ } }(); diff --git a/www/extras/wobject/Survey/administersurvey/comm.js b/www/extras/wobject/Survey/administersurvey/comm.js index f4ceee030..95facaabd 100644 --- a/www/extras/wobject/Survey/administersurvey/comm.js +++ b/www/extras/wobject/Survey/administersurvey/comm.js @@ -29,6 +29,7 @@ Survey.Comm= new function(){ this.callback = { + window.scrollTo(0, 0); upload:function(o){ callMade = 0; Survey.Comm.callServer('','loadQuestions');