mirror of
https://github.com/nasa/openmct.git
synced 2025-03-23 12:35:48 +00:00
[Time Conductor] Check for value changes
...on watches triggered from the picker. Only want to trigger a submit when this actually constitutes a change from the datetime field's underlying model (to avoid triggering form submission when datetime picker is initialized.)
This commit is contained in:
parent
16efd85dfc
commit
ffff13205a
@ -68,10 +68,12 @@ define(
|
||||
}
|
||||
|
||||
function updateFromPicker(value) {
|
||||
$scope.ngModel[$scope.field] = value;
|
||||
updateFromModel(value);
|
||||
if ($scope.structure && $scope.structure.submit) {
|
||||
$scope.structure.submit();
|
||||
if (value !== $scope.ngModel[$scope.field]) {
|
||||
$scope.ngModel[$scope.field] = value;
|
||||
updateFromModel(value);
|
||||
if ($scope.structure && $scope.structure.submit) {
|
||||
$scope.structure.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user