Skip to content

Commit

Permalink
more noop handling, now that interceptor returns error
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed May 31, 2019
1 parent fe7c8c7 commit 06adf37
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
7 changes: 5 additions & 2 deletions www/js/EventModalCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,9 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro

// This function returns neighbor events if applicable


function noop() {

}


function neighborEvents(eid, mid) {
Expand Down Expand Up @@ -1444,7 +1446,8 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
d.reject(neighbors);
return (d.promise);

});
})
.catch (noop);

return (d.promise);

Expand Down
5 changes: 4 additions & 1 deletion www/js/MonitorCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ angular.module('zmApp.controllers')
return;
}
};

function noop() {}
//-----------------------------------------------------------------------
// This function takes care of changing monitor parameters
// For now, I've only limited it to enable/disable and change monitor mode
Expand Down Expand Up @@ -221,7 +223,8 @@ angular.module('zmApp.controllers')
});*/
doRefresh();
}
});
})
.catch (noop);
}

},
Expand Down
5 changes: 4 additions & 1 deletion www/js/MontageHistoryCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc
});


function noop() {}

function getNextSetHistory() {

// grab events that start on or after the time
Expand Down Expand Up @@ -373,7 +375,8 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc

}

);
)
.catch (noop);

// At this stage, we have both a general events grab, and specific event grabs for MIDS that were empty

Expand Down
5 changes: 3 additions & 2 deletions www/js/TimelineCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,8 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla
NVR.debug("Error getting incremental timeline data");
isProcessNewEventsWaiting = false;

});
})
.catch (noop);

// check all events that started 10+10 seconds ago

Expand All @@ -1022,7 +1023,7 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla
function noop() {

};

//-------------------------------------------------
// This function draws the graph
//-------------------------------------------------
Expand Down

0 comments on commit 06adf37

Please sign in to comment.