code refactor
This commit is contained in:
parent
a8ca2c8de0
commit
c2a84bca5e
|
@ -191,7 +191,7 @@
|
|||
$window.location.reload();
|
||||
};
|
||||
|
||||
$('[data-toggle="popover"]').popover();
|
||||
angular.element('[data-toggle="popover"]').popover();
|
||||
|
||||
$rootScope.loadPromise = $timeout(function () {}, 100);
|
||||
}]);
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
});
|
||||
};
|
||||
|
||||
$('#quickSettingModal').on('hidden.bs.modal', function () {
|
||||
angular.element('#quickSettingModal').on('hidden.bs.modal', function () {
|
||||
scope.setting = null;
|
||||
scope.context.availableOptions = [];
|
||||
scope.context.globalOptions = [];
|
||||
|
@ -60,7 +60,7 @@
|
|||
loadOptions(setting.type);
|
||||
loadAria2OptionsValue();
|
||||
|
||||
$('#quickSettingModal').modal('show');
|
||||
angular.element('#quickSettingModal').modal('show');
|
||||
}
|
||||
}, true);
|
||||
}
|
||||
|
|
Reference in a new issue