Whups, windows.scrollTo on wrong line.

This commit is contained in:
Kaleb Murphy 2008-05-21 16:34:56 +00:00
parent d7f38c4e37
commit 6832eacc7c

View file

@ -29,12 +29,12 @@ 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');
}, },
success:function(o){ success:function(o){
window.scrollTo(0,0);
callMade = 0; callMade = 0;
var response = ''; var response = '';
response = YAHOO.lang.JSON.parse(o.responseText); response = YAHOO.lang.JSON.parse(o.responseText);
@ -55,7 +55,6 @@ Survey.Comm= new function(){
alert("Last request failed "+o.statusText); alert("Last request failed "+o.statusText);
} }
}, },
timeout: 15000
}; };
this.callServer = function(data,functionName,form,hasFile){ this.callServer = function(data,functionName,form,hasFile){