diff --git a/web/skins/bootstrap/js/app.js b/web/skins/bootstrap/js/app.js index dac90f048..c9165ddd3 100644 --- a/web/skins/bootstrap/js/app.js +++ b/web/skins/bootstrap/js/app.js @@ -76,7 +76,7 @@ ZoneMinder.factory('Events', function($http) { ZoneMinder.factory('Event', function($http) { return { - getEvent: function(eventId) { + get: function(eventId) { return $http.get('/api/events/'+ eventId +'.json'); }, delete: function(eventId) { diff --git a/web/skins/bootstrap/js/controllers.js b/web/skins/bootstrap/js/controllers.js index 4e5b046e1..263120ce4 100644 --- a/web/skins/bootstrap/js/controllers.js +++ b/web/skins/bootstrap/js/controllers.js @@ -66,7 +66,7 @@ ZoneMinder.controller('EventsController', function($scope, Events, $modal) { ZoneMinder.controller('EventController', function($scope, Event, $modalInstance, eventId) { - Event.getEvent(eventId).then(function(results) { + Event.get(eventId).then(function(results) { $scope.eventId = eventId; $scope.name = results.data.event.Event.Name; $scope.cause = results.data.event.Event.Cause;