Fix bug where monitor source type was not set

This commit is contained in:
Kyle Johnson 2014-12-19 10:13:52 -05:00
parent 2e96b141e5
commit 227f32a6a9
3 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -48,7 +48,7 @@ ZoneMinder.controller('EventController', function($scope, $location, Event) {
ZoneMinder.controller('MonitorController', function($scope, $http) {
$scope.monitor = {};
$scope.monitor.sourceType = 'Remote';
$scope.monitor.Type = 'Remote';
$scope.monitor.RefBlendPerc = 6;
$scope.monitor.AlarmRefBlendPerc = 6;
$scope.monitor.Function = 'Monitor';

View File

@ -9,8 +9,8 @@
<input type="text" id="Name" class="form-control" ng-model="monitor.Name" placeholder="Monitor-Name" required />
</div>
<div class="form-group">
<label for="SourceType"><?= $SLANG['SourceType'] ?></label>
<select ng-model="monitor.sourceType" id="SourceType" class="form-control" required>
<label for="Type"><?= $SLANG['SourceType'] ?></label>
<select ng-model="monitor.Type" id="Type" class="form-control" required>
<option value="Local">Local</option>
<option value="Remote">Remote</option>
<option value="File">File</option>