Rename getEvent to get

This commit is contained in:
Kyle Johnson 2015-01-06 18:39:04 -05:00
parent 11b1344697
commit 45e450e988
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ ZoneMinder.factory('Events', function($http) {
ZoneMinder.factory('Event', function($http) { ZoneMinder.factory('Event', function($http) {
return { return {
getEvent: function(eventId) { get: function(eventId) {
return $http.get('/api/events/'+ eventId +'.json'); return $http.get('/api/events/'+ eventId +'.json');
}, },
delete: function(eventId) { delete: function(eventId) {

View File

@ -66,7 +66,7 @@ ZoneMinder.controller('EventsController', function($scope, Events, $modal) {
ZoneMinder.controller('EventController', function($scope, Event, $modalInstance, eventId) { ZoneMinder.controller('EventController', function($scope, Event, $modalInstance, eventId) {
Event.getEvent(eventId).then(function(results) { Event.get(eventId).then(function(results) {
$scope.eventId = eventId; $scope.eventId = eventId;
$scope.name = results.data.event.Event.Name; $scope.name = results.data.event.Event.Name;
$scope.cause = results.data.event.Event.Cause; $scope.cause = results.data.event.Event.Cause;