diff --git a/media/js/wiki.js b/media/js/wiki.js index 0ec4a77a4d4..34c3f733d65 100644 --- a/media/js/wiki.js +++ b/media/js/wiki.js @@ -27,10 +27,8 @@ ShowFor.initForTags(); initNeedsChange(); - // Enable buttons when done loading. - $(window).load(function() { - $('#actions input').removeAttr('disabled'); - }); + // We can enable the buttons now. + $('#actions input').removeAttr('disabled'); } if ($body.is('.edit, .new, .translate')) { // Document form page @@ -39,10 +37,8 @@ initPreValidation(); initNeedsChange(); - // Enable buttons when done loading. - $(window).load(function() { - $('.submit input').removeAttr('disabled'); - }); + // We can enable the buttons now. + $('.submit input').removeAttr('disabled'); } initEditingTools();