code cleanup
This commit is contained in:
parent
756a776eba
commit
7dc2e2bad1
3 changed files with 7 additions and 7 deletions
8
angular_app/js/app.js
vendored
8
angular_app/js/app.js
vendored
|
@ -41,7 +41,7 @@ eventManApp.run(['$rootScope', '$state', '$stateParams', '$log',
|
||||||
/* Configure the states. */
|
/* Configure the states. */
|
||||||
eventManApp.config(['$stateProvider', '$urlRouterProvider',
|
eventManApp.config(['$stateProvider', '$urlRouterProvider',
|
||||||
function($stateProvider, $urlRouterProvider) {
|
function($stateProvider, $urlRouterProvider) {
|
||||||
$urlRouterProvider.otherwise("/events");
|
$urlRouterProvider.otherwise('/events');
|
||||||
$stateProvider
|
$stateProvider
|
||||||
.state('events', {
|
.state('events', {
|
||||||
url: '/events',
|
url: '/events',
|
||||||
|
@ -50,7 +50,7 @@ eventManApp.config(['$stateProvider', '$urlRouterProvider',
|
||||||
})
|
})
|
||||||
.state('event', {
|
.state('event', {
|
||||||
url: '/event',
|
url: '/event',
|
||||||
templateUrl: 'event-main.html',
|
templateUrl: 'event-main.html'
|
||||||
})
|
})
|
||||||
.state('event.new', {
|
.state('event.new', {
|
||||||
url: '/new',
|
url: '/new',
|
||||||
|
@ -74,7 +74,7 @@ eventManApp.config(['$stateProvider', '$urlRouterProvider',
|
||||||
})
|
})
|
||||||
.state('person', {
|
.state('person', {
|
||||||
url: '/person',
|
url: '/person',
|
||||||
templateUrl: 'person-main.html',
|
templateUrl: 'person-main.html'
|
||||||
})
|
})
|
||||||
.state('person.new', {
|
.state('person.new', {
|
||||||
url: '/new',
|
url: '/new',
|
||||||
|
@ -93,7 +93,7 @@ eventManApp.config(['$stateProvider', '$urlRouterProvider',
|
||||||
})
|
})
|
||||||
.state('import', {
|
.state('import', {
|
||||||
url: '/import',
|
url: '/import',
|
||||||
templateUrl: 'import-main.html',
|
templateUrl: 'import-main.html'
|
||||||
})
|
})
|
||||||
.state('import.persons', {
|
.state('import.persons', {
|
||||||
url: '/persons',
|
url: '/persons',
|
||||||
|
|
4
angular_app/js/controllers.js
vendored
4
angular_app/js/controllers.js
vendored
|
@ -167,7 +167,7 @@ eventManControllers.controller('EventDetailsCtrl', ['$scope', '$state', 'Event',
|
||||||
angular.forEach($scope.personsOrder,
|
angular.forEach($scope.personsOrder,
|
||||||
function(value, idx) {
|
function(value, idx) {
|
||||||
if (value !== key && value !== inv_key) {
|
if (value !== key && value !== inv_key) {
|
||||||
new_order.push(value)
|
new_order.push(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -363,7 +363,7 @@ eventManControllers.controller('PersonsListCtrl', ['$scope', 'Person', 'Setting'
|
||||||
angular.forEach($scope.personsOrder,
|
angular.forEach($scope.personsOrder,
|
||||||
function(value, idx) {
|
function(value, idx) {
|
||||||
if (value !== key && value !== inv_key) {
|
if (value !== key && value !== inv_key) {
|
||||||
new_order.push(value)
|
new_order.push(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
2
angular_app/js/services.js
vendored
2
angular_app/js/services.js
vendored
|
@ -139,7 +139,7 @@ eventManServices.factory('Setting', ['$resource',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
update: {method: 'PUT'},
|
update: {method: 'PUT'}
|
||||||
});
|
});
|
||||||
}]
|
}]
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue