diff --git a/app/static/js/request/new-request-agency.js b/app/static/js/request/new-request-agency.js index 62eb4bb73..7cb0c4fb6 100755 --- a/app/static/js/request/new-request-agency.js +++ b/app/static/js/request/new-request-agency.js @@ -12,12 +12,10 @@ "use strict"; $(document).ready(function () { - $(window).on("load", function () { - // Determine if the agencyRequestInstructions and custom request forms need to be shown on page load. - getRequestAgencyInstructions(); - // Check for custom request forms on page load (browser back button behavior). - getCustomRequestForms($("#request-agency").val()); - }); + // Determine if the agencyRequestInstructions and custom request forms need to be shown on page load. + getRequestAgencyInstructions(); + // Check for custom request forms on page load (browser back button behavior). + getCustomRequestForms($("#request-agency").val()); $("input[name='tz-name']").val(jstz.determine().name()); diff --git a/app/static/js/request/new-request-user.js b/app/static/js/request/new-request-user.js index 9a1084963..a5bafb8a6 100755 --- a/app/static/js/request/new-request-user.js +++ b/app/static/js/request/new-request-user.js @@ -12,12 +12,10 @@ "use strict"; $(document).ready(function () { - $(window).on("load", function () { - // Determine if the agencyRequestInstructions need to be shown on page load. - getRequestAgencyInstructions(); - // Check for custom request forms on page load (browser back button behavior). - getCustomRequestForms($("#request-agency").val()); - }); + // Determine if the agencyRequestInstructions need to be shown on page load. + getRequestAgencyInstructions(); + // Check for custom request forms on page load (browser back button behavior). + getCustomRequestForms($("#request-agency").val()); $("input[name='tz-name']").val(jstz.determine().name()); diff --git a/app/templates/base.html b/app/templates/base.html index d7158d453..04c8a078f 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -76,7 +76,6 @@ - {{ moment.include_moment(local_js=url_for('static', filename='js/plugins/moment.min.js')) }} diff --git a/app/templates/main/contact.html b/app/templates/main/contact.html index 70ed77ce5..d31d1097e 100644 --- a/app/templates/main/contact.html +++ b/app/templates/main/contact.html @@ -52,6 +52,7 @@

Technical Support

{% endblock %} {% block custom_script %} + {% endblock %} \ No newline at end of file diff --git a/app/templates/request/new_request_anon.html b/app/templates/request/new_request_anon.html index 5c008dfa1..d1035be5e 100644 --- a/app/templates/request/new_request_anon.html +++ b/app/templates/request/new_request_anon.html @@ -253,6 +253,7 @@

Address

{% endblock %} {% block custom_script %} + diff --git a/app/templates/request/new_request_anon.js.html b/app/templates/request/new_request_anon.js.html index df3b669c5..ece4114ac 100644 --- a/app/templates/request/new_request_anon.js.html +++ b/app/templates/request/new_request_anon.js.html @@ -10,26 +10,24 @@ "use strict"; $(document).ready(function () { - $(window).on("load", function () { - {% if kiosk_mode %} - $("#request-category").prop('disabled', true); - $("#request-agency").prop('disabled', true); - $("#request-title").prop('disabled', true); - {% endif %} - {% if category %} - $("#request-category option[value=\"{{ category }}\"]").attr('selected', 'selected'); - {% endif %} - {% if agency %} - $("#request-agency option[value={{ agency }}]").attr('selected', 'selected'); - {% endif %} - {% if title %} - $("#request-title").val("{{ title }}"); - {% endif %} - // Determine if the agencyRequestInstructions need to be shown on page load. - getRequestAgencyInstructions(); - // Check for custom request forms on page load (browser back button behavior). - getCustomRequestForms($("#request-agency").val()); - }); + {% if kiosk_mode %} + $("#request-category").prop('disabled', true); + $("#request-agency").prop('disabled', true); + $("#request-title").prop('disabled', true); + {% endif %} + {% if category %} + $("#request-category option[value=\"{{ category }}\"]").attr('selected', 'selected'); + {% endif %} + {% if agency %} + $("#request-agency option[value={{ agency }}]").attr('selected', 'selected'); + {% endif %} + {% if title %} + $("#request-title").val("{{ title }}"); + {% endif %} + // Determine if the agencyRequestInstructions need to be shown on page load. + getRequestAgencyInstructions(); + // Check for custom request forms on page load (browser back button behavior). + getCustomRequestForms($("#request-agency").val()); $("input[name='tz-name']").val(jstz.determine().name()); diff --git a/app/templates/request/new_request_user.html b/app/templates/request/new_request_user.html index 585b0e53b..6ee7aadb7 100644 --- a/app/templates/request/new_request_user.html +++ b/app/templates/request/new_request_user.html @@ -185,6 +185,7 @@

Request a Record

{% endblock %} {% block custom_script %} +