Move view-specific includes out of includes/functions. It is far easier to just put those at the bottom of the actual view file.

This commit is contained in:
Isaac Connor
2022-10-21 09:52:00 -04:00
parent 262a2f0cb0
commit beec8bb03a

View File

@@ -956,16 +956,6 @@ function xhtmlFooter() {
'js/dateTimePicker/jquery-ui-timepicker-addon.js',
'js/Server.js',
), true );
?>
<?php
if ($view == 'event' || $view == 'video') {
?>
<link href="skins/<?php echo $skin ?>/js/video-js.css" rel="stylesheet">
<link href="skins/<?php echo $skin ?>/js/video-js-skin.css" rel="stylesheet">
<script src="skins/<?php echo $skin ?>/js/video.js"></script>
<script src="./js/videojs.zoomrotate.js"></script>
<?php
}
?>
<script src="skins/<?php echo $skin ?>/js/moment.min.js"></script>
<?php
@@ -991,10 +981,6 @@ function xhtmlFooter() {
?>
<script src="<?php echo cache_bust($skinJsFile) ?>"></script>
<script src="<?php echo cache_bust('js/logger.js')?>"></script>
<?php
if ( $basename == 'monitor' ) {
echo output_script_if_exists(array('js/leaflet/leaflet.js'), false);
} ?>
<script nonce="<?php echo $cspNonce; ?>">$j('.chosen').chosen();</script>
</body>
</html>