mirror of
https://github.com/redmine/redmine.git
synced 2024-08-26 05:57:38 +02:00
Merged r9391 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@9403 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
baa4ebd05f
commit
4c330a1241
@ -520,4 +520,16 @@ function hideOnLoad() {
|
||||
});
|
||||
}
|
||||
|
||||
function addFormObserversForDoubleSubmit() {
|
||||
$$('form[method=post]').each(function(el) {
|
||||
Event.observe(el, 'submit', function(e) {
|
||||
var form = Event.element(e);
|
||||
form.select('input[type=submit]').each(function(btn) {
|
||||
btn.disable();
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Event.observe(window, 'load', hideOnLoad);
|
||||
Event.observe(window, 'load', addFormObserversForDoubleSubmit);
|
||||
|
Loading…
Reference in New Issue
Block a user