Parcourir la source

Refactor js import

Denis K il y a 8 ans
Parent
commit
777f503a6a

+ 1 - 1
jet/static/jet/js/src/features/dashboard.js

@@ -1,6 +1,6 @@
 require('./../utils/jquery-slidefade');
 
-var $ = window.jQuery = require('jquery');
+var $ = require('jquery');
 
 require('jquery-ui/ui/core');
 require('jquery-ui/ui/widget');

+ 1 - 1
jet/static/jet/js/src/features/date-time-widgets.js

@@ -1,4 +1,4 @@
-var $ = window.jQuery = require('jquery');
+var $ = require('jquery');
 
 require('jquery-ui/ui/core');
 require('jquery-ui/ui/datepicker');

+ 1 - 1
jet/static/jet/js/src/features/sidebar/application-pinning.js

@@ -1,6 +1,6 @@
 require('./../../utils/jquery-slidefade');
 
-var $ = window.jQuery = require('jquery');
+var $ = require('jquery');
 
 require('jquery-ui/ui/core');
 require('jquery-ui/ui/widget');

+ 1 - 1
jet/static/jet/js/src/features/sidebar/bookmarks.js

@@ -1,4 +1,4 @@
-var $ = window.jQuery = require('jquery');
+var $ = require('jquery');
 
 require('jquery-ui/ui/core');
 require('jquery-ui/ui/widget');

+ 1 - 1
jet/static/jet/js/src/features/sidebar/main.js

@@ -1,4 +1,4 @@
-var $ = window.jQuery = require('jquery');
+var $ = require('jquery');
 var SideBarApplicationPinning = require('./application-pinning');
 var SideBarBookmarks = require('./bookmarks');
 var SideBarPopup = require('./popup');

+ 1 - 1
jet/static/jet/js/src/features/sidebar/popup.js

@@ -1,6 +1,6 @@
 require('../../utils/jquery-icontains');
 
-var $ = window.jQuery = require('jquery');
+var $ = require('jquery');
 
 require('browsernizr/test/touchevents');
 require('browsernizr');

+ 1 - 1
jet/static/jet/js/src/features/tooltips.js

@@ -1,4 +1,4 @@
-var $ = window.jQuery = require('jquery');
+var $ = require('jquery');
 
 require('jquery-ui/ui/core');
 require('jquery-ui/ui/position');

+ 1 - 1
jet/static/jet/js/src/main.js

@@ -1,4 +1,4 @@
-var $ = require('jquery');
+var $ = window.jQuery = require('jquery');
 
 jet = {
     jQuery: $