浏览代码

HUE-2717 [oozie] Coordinator editor does not save non-default schedules

Update model on cron:change event
Enrico Berti 10 年之前
父节点
当前提交
05e23ee235
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      apps/oozie/src/oozie/templates/editor2/coordinator_editor.mako

+ 4 - 0
apps/oozie/src/oozie/templates/editor2/coordinator_editor.mako

@@ -563,6 +563,10 @@ ${ dashboard.import_bindings() }
       })
       .jqCronGetInstance();
 
+  $('#jqCron-container').on('cron:change', function(e, cron){
+    viewModel.coordinator.properties.cron_frequency(cron);
+  });
+
   function zeroPadding(value) {
     return (value < 10 ? '0':'') + value;
   }