|
1 | | -(function(window, angular, $) { |
| 1 | +(function(window, angular) { |
2 | 2 | 'use strict'; |
3 | 3 | angular.module('FileManagerApp', ['pascalprecht.translate', 'ngFileUpload']); |
4 | 4 |
|
5 | 5 | /** |
6 | 6 | * jQuery inits |
7 | 7 | */ |
8 | | - $(window.document).on('shown.bs.modal', '.modal', function() { |
| 8 | + angular.element(window.document).on('shown.bs.modal', '.modal', function() { |
9 | 9 | window.setTimeout(function() { |
10 | | - $('[autofocus]', this).focus(); |
| 10 | + angular.element('[autofocus]', this).focus(); |
11 | 11 | }.bind(this), 100); |
12 | 12 | }); |
13 | 13 |
|
14 | | - $(window.document).on('click', function() { |
15 | | - $('#context-menu').hide(); |
| 14 | + angular.element(window.document).on('click', function() { |
| 15 | + angular.element('#context-menu').hide(); |
16 | 16 | }); |
17 | 17 |
|
18 | | - $(window.document).on('contextmenu', '.main-navigation .table-files tr.item-list:has("td"), .item-list', function(e) { |
19 | | - var menu = $('#context-menu'); |
| 18 | + angular.element(window.document).on('contextmenu', '.main-navigation .table-files tr.item-list:has("td"), .item-list', function(e) { |
| 19 | + var menu = angular.element('#context-menu'); |
20 | 20 |
|
21 | 21 | if (e.pageX >= window.innerWidth - menu.width()) { |
22 | 22 | e.pageX -= menu.width(); |
|
54 | 54 | return undefined; |
55 | 55 | }; |
56 | 56 | } |
57 | | - |
58 | | -})(window, angular, jQuery); |
| 57 | + |
| 58 | +})(window, angular); |
0 commit comments