From 467423329f39276006813cd91fe2e0daf867c975 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 20 Sep 2007 08:46:14 +0000 Subject: [PATCH] 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 --- etemplate/js/etemplate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/etemplate/js/etemplate.js b/etemplate/js/etemplate.js index e301a1875d..c31c08c3b4 100644 --- a/etemplate/js/etemplate.js +++ b/etemplate/js/etemplate.js @@ -14,6 +14,7 @@ function submitit(form,name) //alert(name+' pressed'); form.submit_button.value = name; form.submit(); + form.submit_button.value = ''; return false; }