Browse Source

HUE-5110 [oozie] First workflow save starts blinking the 'unsaved' feature in the editor

Enrico Berti 9 years ago
parent
commit
608fbf2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      desktop/core/src/desktop/static/desktop/js/ko.common-dashboard.js

+ 3 - 1
desktop/core/src/desktop/static/desktop/js/ko.common-dashboard.js

@@ -295,7 +295,9 @@ function ChangeTracker(objectToTrack, ko, mappingOptions) {
     ]
   };
 
-  $.extend(MAPPING, mappingOptions);
+  if (mappingOptions && mappingOptions.ignore) {
+    MAPPING.ignore = MAPPING.ignore.concat(mappingOptions.ignore);
+  }
 
   var result = {
     somethingHasChanged: ko.dependentObservable(function () {