commit 12a589a8c2adea4ccf4047968f024be079b1e932 parent 68f885e2ddfc69ec5f2780a52334119f3693bca4 Author: MTRNord <mtrnord1@gmail.com> Date: Sun, 19 Apr 2015 16:47:34 +0200 jquery :/ Diffstat:
| M | install/set_variables.php | | | 19 | +++++++++++-------- |
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/install/set_variables.php b/install/set_variables.php @@ -31,15 +31,18 @@ <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 type="text/javascript"> - $(".form-horizontal > :input").keyup(function() { - var button = document.getElementById("button"); - var $emptyFields = $('.form-horizontal :input').filter(function() { - return $.trim(this.value) === ""; + function foo() { + $(".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"; + } }); - if (!$emptyFields.length) { - button.style.display = "block"; - } - }); + } + onload = foo; </script> </head> <body>