From 744ae8b60132e3e0b168243040d7e0f166dc25c5 Mon Sep 17 00:00:00 2001 From: Ricky Rosario Date: Thu, 29 Dec 2011 11:18:02 -0500 Subject: [PATCH] [bug 714064] Fix button enabling. --- media/js/wiki.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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();