diff --git a/templates/index.html.ep b/templates/index.html.ep index 50abb4c..5f9c7ab 100644 --- a/templates/index.html.ep +++ b/templates/index.html.ep @@ -140,8 +140,6 @@ }; $('document').ready(function() { - $('.jsonly').show(); - var firstview = ($("#first-view").prop('checked')) ? 1 : 0; var deleteday = ($("#delete-day").prop('checked')) ? 1 : 0; diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index ffac184..f10e411 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -34,6 +34,11 @@ % end %= javascript 'js/jquery-2.1.0.min.js' %= javascript 'js/bootstrap.min.js' + %= javascript begin + $('document').ready(function() { + $('.jsonly').show(); + }); + % end