mirror of https://github.com/itflow-org/itflow
Fix Broken Select2 andDateRangePicker JS Plugins
This commit is contained in:
parent
b34fd85ad4
commit
7b94e29aa4
|
|
@ -17,3 +17,5 @@ require_once "inc_wrapper.php";
|
|||
require_once "inc_alert_feedback.php";
|
||||
|
||||
require_once "pagination_head.php";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -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
Loading…
Reference in New Issue