Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2012-11-08 21:22:51 +01:00
commit 6db6c2aea8

View File

@ -405,7 +405,9 @@ AJAX.registerOnload('functions.js', function () {
// Registering the onload event for functions.js
// ensures that it will be fired for all pages
$('form').not('.ajax').not('.disableAjax').each(function () {
$(this).data('onsubmit', this.onsubmit).attr('onsubmit', '');
if ($(this).attr('onsubmit')) {
$(this).data('onsubmit', this.onsubmit).attr('onsubmit', '');
}
});
});