Koha/koha-tmpl/intranet-tmpl/prog/en/includes/installer-intranet-bottom.inc
Jonathan Druart 18e38b5b3e Bug 29837: Remove JS error during installer
Uncaught ReferenceError: _ is not defined

the _() function is called from calendar.inc, but calendar.inc is
 included before the definition of this function in
installer-intranet-bottom.inc

Test plan:
Confirm that the JS error is gone

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-01-21 21:34:51 -10:00

25 lines
1.1 KiB
PHP

[% USE raw %]
[% USE Asset %]
[% Asset.js("lib/jquery/jquery-2.2.3.min.js") | $raw %]
[% Asset.js("lib/jquery/jquery-migrate-1.3.0.min.js") | $raw %]
[% Asset.js("lib/jquery/jquery-ui-1.11.4.min.js") | $raw %]
[% Asset.js("lib/bootstrap/bootstrap.min.js") | $raw %]
[% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
<!-- installer-intranet-bottom.inc -->
<script>
function _(s) { return s } // dummy function for gettext
[%# Prevent XFS attacks -%]
$(document).ready(function() {
if (self === top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
top.location = self.location;
}
});
</script>
<!-- / installer-intranet-bottom.inc -->
[% INCLUDE 'calendar.inc' %]
[% jsinclude | $raw # Parse the page template's JavaScript block if necessary %]
</body>
</html>