blur-admin/src/app/theme/theme.run.js

28 lines
875 B
JavaScript

/**
* @author v.lugovksy
* created on 15.12.2015
*/
(function () {
'use strict';
angular.module('BlurAdmin.theme')
.run(themeRun);
/** @ngInject */
function themeRun($timeout, $rootScope, layoutSizes, editableOptions, editableThemes) {
$timeout(function () {
$rootScope.$pageFinishedLoading = true;
}, 1000);
$timeout(function () {
$rootScope.$pageLoaded = true;
}, 4000);
$rootScope.$isMenuCollapsed = window.innerWidth <= layoutSizes.resWidthCollapseSidebar;
editableOptions.theme = 'bs3';
editableThemes['bs3'].submitTpl = '<button type="submit" class="btn btn-primary btn-with-icon"><i class="ion-checkmark-round"></i></button>';
editableThemes['bs3'].cancelTpl = '<button type="button" ng-click="$form.$cancel()" class="btn btn-default btn-with-icon"><i class="ion-close-round"></i></button>';
}
})();