code refactor

This commit is contained in:
MaysWind 2017-06-18 13:46:34 +08:00
parent a8ca2c8de0
commit c2a84bca5e
2 changed files with 3 additions and 3 deletions

View file

@ -191,7 +191,7 @@
$window.location.reload(); $window.location.reload();
}; };
$('[data-toggle="popover"]').popover(); angular.element('[data-toggle="popover"]').popover();
$rootScope.loadPromise = $timeout(function () {}, 100); $rootScope.loadPromise = $timeout(function () {}, 100);
}]); }]);

View file

@ -49,7 +49,7 @@
}); });
}; };
$('#quickSettingModal').on('hidden.bs.modal', function () { angular.element('#quickSettingModal').on('hidden.bs.modal', function () {
scope.setting = null; scope.setting = null;
scope.context.availableOptions = []; scope.context.availableOptions = [];
scope.context.globalOptions = []; scope.context.globalOptions = [];
@ -60,7 +60,7 @@
loadOptions(setting.type); loadOptions(setting.type);
loadAria2OptionsValue(); loadAria2OptionsValue();
$('#quickSettingModal').modal('show'); angular.element('#quickSettingModal').modal('show');
} }
}, true); }, true);
} }