Allow cloning of feeds, clone schedule settings
@@ -206,6 +206,7 @@ define(['angular','feed-mgr/feeds/define-feed/module-name'], function (angular,m
}
function setDefaultScheduleStrategy() {
+ if(angular.isUndefined(self.model.cloned) || self.model.cloned == false) {
if (self.model.inputProcessorType != '' && (self.model.schedule.schedulingStrategyTouched == false || self.model.schedule.schedulingStrategyTouched == undefined)) {
if (self.model.inputProcessorType.indexOf("GetFile") >= 0) {
setTimerDriven();
@@ -218,6 +219,12 @@ define(['angular','feed-mgr/feeds/define-feed/module-name'], function (angular,m
}
self.model.schedule.schedulingStrategyTouched = true;
}
+ } else {
+ var split = self.model.schedule.schedulingPeriod.split(' ');
+ self.timerAmount = split[0];
+ self.timerUnits = split[1];
+
+ }
}
/**
