commit 870c9d882d97ca75d75ef60601ee919840022c77 parent 690a90ef18bbe78135f79de85d2d7a3d8a4b03c7 Author: MTRNord <mtrnord1@gmail.com> Date: Sun, 19 Apr 2015 16:42:57 +0200 fix js Diffstat:
| M | install/set_variables.php | | | 15 | +++++++-------- |
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/install/set_variables.php b/install/set_variables.php @@ -31,15 +31,14 @@ <link rel="stylesheet" href="../core/libs/theme_engine/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" href="../core/libs/theme_engine/bootstrap-social/bootstrap-social.min.css"> <script> - (document).ready(function() { - $(".form-horizontal > :input").keyup(function() { - var $emptyFields = $('.form-horizontal :input').filter(function() { - return $.trim(this.value) === ""; - }); - if (!$emptyFields.length) { - button.style.display = "block"; - } + $(".form-horizontal > :input").keyup(function() { + var button = document.getElementById("button"); + var $emptyFields = $('.form-horizontal :input').filter(function() { + return $.trim(this.value) === ""; }); + if (!$emptyFields.length) { + button.style.display = "block"; + } }); </script> </head>