index checking

This commit is contained in:
Kyle Spearrin 2016-11-09 21:49:15 -05:00
parent 0050b570b4
commit 3f0ca412c6
1 changed files with 6 additions and 2 deletions

View File

@ -127,7 +127,9 @@
apiService.sites.del({ id: site.id }, function () {
var index = $scope.sites.indexOf(site);
if (index > -1) {
$scope.sites.splice(index, 1);
}
});
};
@ -174,7 +176,9 @@
apiService.folders.del({ id: folder.id }, function () {
var index = $scope.folders.indexOf(folder);
if (index > -1) {
$scope.folders.splice(index, 1);
}
});
};