diff --git a/src/app/app.js b/src/app/app.js index abfc782..1c40fd9 100644 --- a/src/app/app.js +++ b/src/app/app.js @@ -4,7 +4,7 @@ var blurAdminApp = angular.module('BlurAdmin', [ 'ui.sortable', 'ngRoute', 'ngTouch', - 'BlurAdmin.layout', + 'BlurAdmin.theme', 'BlurAdmin.dashboard', 'BlurAdmin.buttonsPage', 'BlurAdmin.chartsPage', @@ -19,20 +19,6 @@ var blurAdminApp = angular.module('BlurAdmin', [ 'toastr', 'smart-table', 'ui.slimscroll' -]).config(['$routeProvider', 'toastrConfig', function ($routeProvider, toastrConfig) { +]).config(['$routeProvider', function ($routeProvider) { $routeProvider.otherwise({redirectTo: '/dashboard'}); - - angular.extend(toastrConfig, { - closeButton: true, - closeHtml: '', - timeOut: 5000, - autoDismiss: false, - containerId: 'toast-container', - maxOpened: 0, - newestOnTop: true, - positionClass: 'toast-top-right', - preventDuplicates: false, - preventOpenDuplicates: false, - target: 'body' - }); }]); \ No newline at end of file diff --git a/src/app/common/controllers/mainCtrl.js b/src/app/common/controllers/mainCtrl.js deleted file mode 100644 index db168ee..0000000 --- a/src/app/common/controllers/mainCtrl.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -blurAdminApp.controller('mainCtrl', ['$scope', '$timeout', function ($scope, $timeout) { - $timeout(function () { - $scope.finishLoading = true; - }, 1000); - - $timeout(function () { - pageLoaded = true; - }, 4000); - - $scope.isMenuCollapsed = window.innerWidth <= resWidthCollapseSidebar; -}]); \ No newline at end of file diff --git a/src/app/common/directives/zoomIn.js b/src/app/common/directives/zoomIn.js index 9fed91e..d0eff67 100644 --- a/src/app/common/directives/zoomIn.js +++ b/src/app/common/directives/zoomIn.js @@ -4,13 +4,13 @@ 'use strict'; -blurAdminApp.directive('zoomIn', ['$timeout', function ($timeout) { +blurAdminApp.directive('zoomIn', ['$timeout', '$rootScope', function ($timeout, $rootScope) { return { restrict: 'A', link: function ($scope, elem) { var delay = 1000; - if (pageLoaded) { + if ($rootScope.$pageLoaded) { delay = 100; } diff --git a/src/app/components/pageTop/pageTop.html b/src/app/components/pageTop/pageTop.html index 9dd37b2..9f13987 100644 --- a/src/app/components/pageTop/pageTop.html +++ b/src/app/components/pageTop/pageTop.html @@ -1,6 +1,6 @@
- +