fixed 2.unwanted-download problem: if you click on a download button and then use eg. a selectbox with onchange='this.form.submit()' the button _stays_ pressed, because the value of the button var is still set as the previous submitted form returns no new page to the browser (resetting the button var), because it's a download

This commit is contained in:
Ralf Becker 2007-09-20 08:46:14 +00:00
parent dbb52a6231
commit 467423329f

View File

@ -14,6 +14,7 @@ function submitit(form,name)
//alert(name+' pressed'); //alert(name+' pressed');
form.submit_button.value = name; form.submit_button.value = name;
form.submit(); form.submit();
form.submit_button.value = '';
return false; return false;
} }