Fix Broken Select2 andDateRangePicker JS Plugins
This commit is contained in:
@@ -17,3 +17,5 @@ require_once "inc_wrapper.php";
|
|||||||
require_once "inc_alert_feedback.php";
|
require_once "inc_alert_feedback.php";
|
||||||
|
|
||||||
require_once "pagination_head.php";
|
require_once "pagination_head.php";
|
||||||
|
|
||||||
|
?>
|
||||||
|
|||||||
@@ -19,12 +19,10 @@
|
|||||||
//isomorphic issue
|
//isomorphic issue
|
||||||
var jQuery = (typeof window != 'undefined') ? window.jQuery : undefined;
|
var jQuery = (typeof window != 'undefined') ? window.jQuery : undefined;
|
||||||
if (!jQuery) {
|
if (!jQuery) {
|
||||||
jQuery = require 'jquery';
|
jQuery = require('jquery');
|
||||||
|
|
||||||
if (!jQuery.fn) jQuery.fn = {};
|
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);
|
module.exports = factory(moment, jQuery);
|
||||||
} else {
|
} else {
|
||||||
// Browser globals
|
// Browser globals
|
||||||
|
|||||||
3
plugins/select2/js/select2.full.min.js
vendored
3
plugins/select2/js/select2.full.min.js
vendored
File diff suppressed because one or more lines are too long
3
plugins/select2/js/select2.min.js
vendored
3
plugins/select2/js/select2.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user