11'use strict' ;
22var app = angular . module ( 'com.module.core' ) ;
3- app . run ( function ( $rootScope , Setting , gettextCatalog ) {
3+ app . run ( function ( $rootScope , Setting , gettextCatalog ) {
44
55 // Left Sidemenu
66 $rootScope . menu = [ ] ;
77
88 // Add Sidebar Menu
9- $rootScope . addMenu = function ( name , uisref , icon ) {
9+ $rootScope . addMenu = function ( name , uisref , icon ) {
1010 $rootScope . menu . push ( {
1111 name : name ,
1212 sref : uisref ,
@@ -15,13 +15,14 @@ app.run(function ($rootScope, Setting, gettextCatalog) {
1515 } ;
1616
1717 // Add Menu Dashboard
18- $rootScope . addMenu ( gettextCatalog . getString ( 'Dashboard' ) , 'app.home' , 'fa-dashboard' ) ;
18+ $rootScope . addMenu ( gettextCatalog . getString ( 'Dashboard' ) , 'app.home' ,
19+ 'fa-dashboard' ) ;
1920
2021 // Dashboard
2122 $rootScope . dashboardBox = [ ] ;
2223
2324 // Add Dashboard Box
24- $rootScope . addDashboardBox = function ( name , color , icon , quantity , href ) {
25+ $rootScope . addDashboardBox = function ( name , color , icon , quantity , href ) {
2526 $rootScope . dashboardBox . push ( {
2627 name : name ,
2728 color : color ,
@@ -32,15 +33,15 @@ app.run(function ($rootScope, Setting, gettextCatalog) {
3233 } ;
3334
3435 // Get Settings for Database
35- $rootScope . setSetting = function ( key , value ) {
36+ $rootScope . setSetting = function ( key , value ) {
3637
3738 Setting . find ( {
3839 filter : {
3940 where : {
4041 key : key
4142 }
4243 }
43- } , function ( data ) {
44+ } , function ( data ) {
4445
4546 if ( data . length ) {
4647 data [ 0 ] . value = value ;
@@ -49,7 +50,7 @@ app.run(function ($rootScope, Setting, gettextCatalog) {
4950 Setting . create ( {
5051 key : key ,
5152 value : value
52- } , function ( data ) {
53+ } , function ( data ) {
5354 console . log ( data ) ;
5455 } ) ;
5556 }
@@ -61,15 +62,15 @@ app.run(function ($rootScope, Setting, gettextCatalog) {
6162 $rootScope . settings = { } ;
6263
6364 // Get Settings for Loopback Service
64- $rootScope . loadSettings = function ( ) {
65- Setting . find ( function ( settings ) {
65+ $rootScope . loadSettings = function ( ) {
66+ Setting . find ( function ( settings ) {
6667 $rootScope . settings . data = settings ;
6768 } ) ;
6869 } ;
6970
7071} ) ;
7172
72- app . config ( function ( formlyConfigProvider ) {
73+ app . config ( function ( formlyConfigProvider ) {
7374 var templates = 'modules/core/views/elements/fields/' ;
7475 var formly = templates + 'formly-field-' ;
7576 var fields = [
@@ -84,7 +85,7 @@ app.config(function (formlyConfigProvider) {
8485 'textarea'
8586 ] ;
8687
87- angular . forEach ( fields , function ( val ) {
88+ angular . forEach ( fields , function ( val ) {
8889 formlyConfigProvider . setTemplateUrl ( val , formly + val + '.html' ) ;
8990 } ) ;
9091
@@ -93,6 +94,6 @@ app.config(function (formlyConfigProvider) {
9394
9495} ) ;
9596
96- app . config ( [ 'cfpLoadingBarProvider' , function ( cfpLoadingBarProvider ) {
97+ app . config ( [ 'cfpLoadingBarProvider' , function ( cfpLoadingBarProvider ) {
9798 cfpLoadingBarProvider . includeSpinner = false ;
9899} ] ) ;
0 commit comments