mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Fix Broken Select2 andDateRangePicker JS Plugins
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user