Sfoglia il codice sorgente

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

Enrico Berti 9 anni fa
parent
commit
608fbf290a

+ 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 () {