Rename getEvent to get
This commit is contained in:
parent
11b1344697
commit
45e450e988
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue