]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
copy form/DayOfWeekSelector.js from manager to manager5
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 3 Jul 2015 09:29:11 +0000 (11:29 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 3 Jul 2015 09:29:11 +0000 (11:29 +0200)
www/manager5/form/DayOfWeekSelector.js [new file with mode: 0644]

diff --git a/www/manager5/form/DayOfWeekSelector.js b/www/manager5/form/DayOfWeekSelector.js
new file mode 100644 (file)
index 0000000..c03c430
--- /dev/null
@@ -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();
+    }
+});