Fix Broken Select2 andDateRangePicker JS Plugins

This commit is contained in:
johnnyq 2023-10-21 22:59:00 -04:00
parent b34fd85ad4
commit 7b94e29aa4
4 changed files with 6 additions and 8 deletions

View File

@ -17,3 +17,5 @@ require_once "inc_wrapper.php";
require_once "inc_alert_feedback.php";
require_once "pagination_head.php";
?>

View File

@ -19,12 +19,10 @@
//isomorphic issue
var jQuery = (typeof window != 'undefined') ? window.jQuery : undefined;
if (!jQuery) {
jQuery = require 'jquery';
jQuery = require('jquery');
if (!jQuery.fn) jQuery.fn = {};
}
var moment = (typeof window != 'undefined' && typeof window.moment != 'undefined') ? window.moment : require 'moment';
var moment = (typeof window != 'undefined' && typeof window.moment != 'undefined') ? window.moment : require('moment');
module.exports = factory(moment, jQuery);
} else {
// Browser globals

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long