Removed auto-submit on 1 MC question per page. Added scroll to top of page on submit.
This commit is contained in:
parent
355decc7c3
commit
d7f38c4e37
2 changed files with 5 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ Survey.Form = new function() {
|
||||||
|
|
||||||
var sliders;
|
var sliders;
|
||||||
|
|
||||||
this.submittimer;
|
// this.submittimer;
|
||||||
|
|
||||||
|
|
||||||
this.displayQuestions = function(params){
|
this.displayQuestions = function(params){
|
||||||
|
|
@ -374,7 +374,7 @@ Survey.Form = new function() {
|
||||||
var qsize = objs[4];
|
var qsize = objs[4];
|
||||||
var aid = objs[5];
|
var aid = objs[5];
|
||||||
max = parseFloat(max);
|
max = parseFloat(max);
|
||||||
clearTimeout(Survey.Form.submittimer);
|
// clearTimeout(Survey.Form.submittimer);
|
||||||
if(maxA == 1){
|
if(maxA == 1){
|
||||||
if(b.className == 'mcbutton-selected'){
|
if(b.className == 'mcbutton-selected'){
|
||||||
document.getElementById(b.hid).value = 0;
|
document.getElementById(b.hid).value = 0;
|
||||||
|
|
@ -415,11 +415,13 @@ Survey.Form = new function() {
|
||||||
// document.getElementById(qid+'max').innerHTML = parseFloat(max+1);
|
// document.getElementById(qid+'max').innerHTML = parseFloat(max+1);
|
||||||
document.getElementById(b.hid).value = '';
|
document.getElementById(b.hid).value = '';
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
if(qsize == 1 && b.className == 'mcbutton-selected'){
|
if(qsize == 1 && b.className == 'mcbutton-selected'){
|
||||||
if(! document.getElementById(aid+'verbatim')){
|
if(! document.getElementById(aid+'verbatim')){
|
||||||
Survey.Form.submittimer=setTimeout("Survey.Form.formsubmit()",500);
|
Survey.Form.submittimer=setTimeout("Survey.Form.formsubmit()",500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}();
|
}();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ Survey.Comm= new function(){
|
||||||
|
|
||||||
|
|
||||||
this.callback = {
|
this.callback = {
|
||||||
|
window.scrollTo(0, 0);
|
||||||
upload:function(o){
|
upload:function(o){
|
||||||
callMade = 0;
|
callMade = 0;
|
||||||
Survey.Comm.callServer('','loadQuestions');
|
Survey.Comm.callServer('','loadQuestions');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue