updates to list indicator

This commit is contained in:
John Mitchell 2016-01-08 16:14:28 -05:00
parent 490b25c3eb
commit 945916b29c
2 changed files with 9 additions and 3 deletions

View File

@ -1063,10 +1063,12 @@ var tower = angular.module('Tower', [
var list = $location.$$path.split("/")[1];
var id = $location.$$path.split("/")[2];
delete $rootScope.listBeingEdited
delete $rootScope.rowBeingEdited
delete $rootScope.listBeingEdited;
delete $rootScope.rowBeingEdited;
$rootScope.$broadcast("EditIndicatorChange", list, id);
} else {
$rootScope.$broadcast("RemoveIndicator");
}
// this line removes the query params attached to a route

View File

@ -175,7 +175,11 @@ export default ['$location', '$compile', '$rootScope', 'SearchWidget', 'Paginate
this.scope.$on("EditIndicatorChange", function(e, list, id) {
e.targetScope.listBeingEdited = list;
e.targetScope.rowBeingEdited = id;
console.log(list, id);
});
this.scope.$on("RemoveIndicator", function(e) {
delete e.targetScope.listBeingEdited;
delete e.targetScope.rowBeingEdited;
});
this.scope.isHiddenByOptions = function(options) {