diff --git a/www/form/CalendarEvent.js b/www/form/CalendarEvent.js index ddc8fa79..ff053468 100644 --- a/www/form/CalendarEvent.js +++ b/www/form/CalendarEvent.js @@ -49,7 +49,6 @@ Ext.define('PBS.form.CalendarEvent', { return data; }, - store: { type: 'calendarEventExamples', }, diff --git a/www/window/DataStoreEdit.js b/www/window/DataStoreEdit.js index a5675680..335b0e84 100644 --- a/www/window/DataStoreEdit.js +++ b/www/window/DataStoreEdit.js @@ -100,6 +100,7 @@ Ext.define('PBS.DataStoreEdit', { } me.url = name ? baseurl + '/' + name : baseurl; me.method = name ? 'PUT' : 'POST'; + me.scheduleValue = name ? null : 'daily'; me.autoLoad = !!name; return {}; }, @@ -146,15 +147,18 @@ Ext.define('PBS.DataStoreEdit', { emptyText: gettext('none'), cbind: { deleteEmpty: '{!isCreate}', + value: '{scheduleValue}', }, }, { xtype: 'pbsCalendarEvent', name: 'prune-schedule', fieldLabel: gettext("Prune Schedule"), + value: 'daily', emptyText: gettext('none'), cbind: { deleteEmpty: '{!isCreate}', + value: '{scheduleValue}', }, }, ],