##############################################################################
# obalkyknih_cz.enabled = 'false';
+##############################################################################
+# JQuery support
+##############################################################################
+# Include JQuery in the TPAC?
+# Set to a true value to enable
+##############################################################################
+# ctx.want_jquery = 1;
##############################################################################
# Browser cache-busting key
<!-- JS imports, etc. -->
<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/opac/simple.js[% ctx.cache_key %]"></script>
[% INCLUDE "opac/i18n_strings.tt2" %]
+
+[% IF ctx.want_jquery %]
+<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/common/jquery.min.js[% ctx.cache_key %]"></script>
+[% END; # ctx.want_jquery %]
+
<!-- DOB validation for Patron Registration in OPAC -->
<script type="text/javascript">
function dobValidate(input) {
[% IF EXPAND_WEB_IMPORTS %]
<!-- angular -->
-<script src="[% ctx.media_prefix %]/js/ui/default/staff/build/js/jquery.min.js"></script>
+<script src="[% ctx.media_prefix %]/js/ui/default/common/build/js/jquery.min.js"></script>
<script src="[% ctx.media_prefix %]/js/ui/default/staff/build/js/angular.min.js"></script>
<script src="[% ctx.media_prefix %]/js/ui/default/staff/build/js/angular-route.min.js"></script>
<script src="[% ctx.media_prefix %]/js/ui/default/staff/build/js/ui-bootstrap-tpls.min.js"></script>
'node_modules/angular-location-update/angular-location-update.min.js',
'node_modules/angular-tree-control/angular-tree-control.js',
'node_modules/ng-toast/dist/ngToast.min.js',
- 'node_modules/jquery/dist/jquery.min.js',
'node_modules/angular-cookies/angular-cookies.min.js',
'node_modules/angular-cookies/angular-cookies.min.js.map',
'node_modules/iframe-resizer/js/iframeResizer.min.js',
'node_modules/moment/min/moment-with-locales.min.js',
'node_modules/moment-timezone/builds/moment-timezone-with-data.min.js'
]
+ },
+ {
+ dest: '../common/build/js/',
+ flatten: true,
+ filter: 'isFile',
+ expand : true,
+ src: [
+ 'node_modules/jquery/dist/jquery.min.js'
+ ]
}]
},
src: [
// These are concatenated in order in the final build file.
// The order is important.
- 'build/js/jquery.min.js',
+ '../common/build/js/jquery.min.js',
'build/js/angular.min.js',
'build/js/angular-animate.min.js',
'build/js/angular-sanitize.min.js',