diff options
author | Camil Staps | 2016-08-03 13:57:57 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-03 13:57:57 +0200 |
commit | 5cd0398b2bfeed032088e821aa5ea3e0450a6808 (patch) | |
tree | ce4638ef60a040c3046ae8f41c82cff69c2b8d23 | |
parent | Added IP to log (diff) |
Reload verb only on trainer page
-rw-r--r-- | public/js/hebrewparsetrainer.js | 2 | ||||
-rw-r--r-- | resources/views/trainer.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/public/js/hebrewparsetrainer.js b/public/js/hebrewparsetrainer.js index a4fb5f7..76ba202 100644 --- a/public/js/hebrewparsetrainer.js +++ b/public/js/hebrewparsetrainer.js @@ -328,8 +328,6 @@ $(document).ready(function(){ tenses_abbr = data.map(function(d){return d.abbreviation;}); } }); - - reloadVerb(); } $('#hebrewparsetrainer-settings input.reload-verb').change(function(){ diff --git a/resources/views/trainer.php b/resources/views/trainer.php index ec78df1..70165b6 100644 --- a/resources/views/trainer.php +++ b/resources/views/trainer.php @@ -98,5 +98,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. <script src="vendor/components/jquery/jquery.min.js"></script> <script src="vendor/twbs/bootstrap/dist/js/bootstrap.min.js"></script> <script src="public/js/hebrewparsetrainer.js"></script> + <script type="text/javascript"> + reloadVerb(); + </script> </body> </html> |