mirror of
https://github.com/nasa/openmct.git
synced 2025-05-09 20:12:50 +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,12 +68,14 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateFromPicker(value) {
|
function updateFromPicker(value) {
|
||||||
|
if (value !== $scope.ngModel[$scope.field]) {
|
||||||
$scope.ngModel[$scope.field] = value;
|
$scope.ngModel[$scope.field] = value;
|
||||||
updateFromModel(value);
|
updateFromModel(value);
|
||||||
if ($scope.structure && $scope.structure.submit) {
|
if ($scope.structure && $scope.structure.submit) {
|
||||||
$scope.structure.submit();
|
$scope.structure.submit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function setFormat(format) {
|
function setFormat(format) {
|
||||||
formatter = formatService.getFormat(format || defaultFormat);
|
formatter = formatService.getFormat(format || defaultFormat);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user