Added handling of empty rearm settings

This commit is contained in:
Niels Draaisma
2015-10-30 16:18:15 +11:00
committed by blu35ky
parent 8b9a9e9ac4
commit 65f2c2136b

View File

@@ -96,11 +96,9 @@
if ($scope.alert.name === undefined || $scope.alert.name === '') {
$scope.alert.name = $scope.getDefaultName();
}
if ($scope.alert.rearm === '' || $scope.alert.rearm === 0) {
$scope.alert.rearm = null;
}
$scope.alert.$save(function(alert) {
growl.addSuccessMessage("Saved.");
if ($scope.alertId === "new") {