Permalink
Browse files

[bug 714064] Fix button enabling.

  • Loading branch information...
1 parent 3fc4bd1 commit 744ae8b60132e3e0b168243040d7e0f166dc25c5 @rlr rlr committed Dec 29, 2011
Showing with 4 additions and 8 deletions.
  1. +4 −8 media/js/wiki.js
View
@@ -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();

0 comments on commit 744ae8b

Please sign in to comment.