From: Dietmar Maurer Date: Fri, 3 Jul 2015 09:29:11 +0000 (+0200) Subject: copy form/DayOfWeekSelector.js from manager to manager5 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=0b62f410317b9383dcf2622ef428d1852ec86b3a;p=pve-manager-legacy.git copy form/DayOfWeekSelector.js from manager to manager5 --- diff --git a/www/manager5/form/DayOfWeekSelector.js b/www/manager5/form/DayOfWeekSelector.js new file mode 100644 index 00000000..c03c430a --- /dev/null +++ b/www/manager5/form/DayOfWeekSelector.js @@ -0,0 +1,20 @@ +Ext.define('PVE.form.DayOfWeekSelector', { + extend: 'PVE.form.KVComboBox', + alias: ['widget.pveDayOfWeekSelector'], + + initComponent: function() { + var me = this; + + me.data = [ + ['sun', Ext.util.Format.htmlDecode(Ext.Date.dayNames[0])], + ['mon', Ext.util.Format.htmlDecode(Ext.Date.dayNames[1])], + ['tue', Ext.util.Format.htmlDecode(Ext.Date.dayNames[2])], + ['wed', Ext.util.Format.htmlDecode(Ext.Date.dayNames[3])], + ['thu', Ext.util.Format.htmlDecode(Ext.Date.dayNames[4])], + ['fri', Ext.util.Format.htmlDecode(Ext.Date.dayNames[5])], + ['sat', Ext.util.Format.htmlDecode(Ext.Date.dayNames[6])] + ]; + + me.callParent(); + } +});