From 6d6e72d809a57f00921c73fba1c030c9353402bd Mon Sep 17 00:00:00 2001 From: MaysWind Date: Wed, 22 Jun 2016 22:23:18 +0800 Subject: [PATCH] modify style --- app/scripts/controllers/new.js | 6 +++++- app/scripts/controllers/settings-ariang.js | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/scripts/controllers/new.js b/app/scripts/controllers/new.js index f9f9e3e..ba9306c 100644 --- a/app/scripts/controllers/new.js +++ b/app/scripts/controllers/new.js @@ -1,7 +1,7 @@ (function () { 'use strict'; - angular.module('ariaNg').controller('NewTaskController', ['$rootScope', '$scope', '$location', 'aria2SettingService', 'aria2TaskService', function ($rootScope, $scope, $location, aria2SettingService, aria2TaskService) { + angular.module('ariaNg').controller('NewTaskController', ['$rootScope', '$scope', '$location', '$timeout', 'aria2SettingService', 'aria2TaskService', function ($rootScope, $scope, $location, $timeout, aria2SettingService, aria2TaskService) { var tabOrders = ['download', 'options']; $scope.context = { @@ -92,5 +92,9 @@ optionStatus.setReady(); }; + + $rootScope.loadPromise = $timeout(function () { + ;//Do Nothing + }, 100); }]); })(); diff --git a/app/scripts/controllers/settings-ariang.js b/app/scripts/controllers/settings-ariang.js index 8fc9e04..be8aefa 100644 --- a/app/scripts/controllers/settings-ariang.js +++ b/app/scripts/controllers/settings-ariang.js @@ -1,7 +1,7 @@ (function () { 'use strict'; - angular.module('ariaNg').controller('AriaNgSettingsController', ['$scope', 'ariaNgLanguages', 'ariaNgCommonService', 'ariaNgSettingService', function ($scope, ariaNgLanguages, ariaNgCommonService, ariaNgSettingService) { + angular.module('ariaNg').controller('AriaNgSettingsController', ['$rootScope', '$scope', '$timeout', 'ariaNgLanguages', 'ariaNgCommonService', 'ariaNgSettingService', function ($rootScope, $scope, $timeout, ariaNgLanguages, ariaNgCommonService, ariaNgSettingService) { $scope.context = { languages: ariaNgLanguages, availableTime: ariaNgCommonService.getTimeOptions([1000, 2000, 3000, 5000, 10000, 30000, 60000], true), @@ -9,5 +9,9 @@ }; $scope.settingService = ariaNgSettingService; + + $rootScope.loadPromise = $timeout(function () { + ;//Do Nothing + }, 100); }]); })();