]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: fix calendarevent examples
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 11 Sep 2020 08:35:26 +0000 (10:35 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 11 Sep 2020 10:17:32 +0000 (12:17 +0200)
*/x is valid syntax for us, but not systemd, so to not confuse users
write it like systemd would accept it

also an timespec must at least have hours and minutes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/form/CalendarEvent.js

index d05136b99d3c52e986ccb7710588e68e841374e8..ddc8fa79791fcb74d412c8b9e0dade97161d11ee 100644 (file)
@@ -4,9 +4,9 @@ Ext.define('PBS.data.CalendarEventExamples', {
 
     field: ['value', 'text'],
     data: [
-       { value: '*/30', text: Ext.String.format(gettext("Every {0} minutes"), 30) },
+       { value: '*:0/30', text: Ext.String.format(gettext("Every {0} minutes"), 30) },
        { value: 'hourly', text: gettext("Every hour") },
-       { value: '*/2:00', text: gettext("Every two hours") },
+       { value: '0/2:00', text: gettext("Every two hours") },
        { value: '2,22:30', text: gettext("Every day") + " 02:30, 22:30" },
        { value: 'daily', text: gettext("Every day") + " 00:00" },
        { value: 'mon..fri', text: gettext("Monday to Friday") + " 00:00" },