]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
add missing setSubmitValue() for text fields
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 29 Mar 2017 15:46:57 +0000 (17:46 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 29 Mar 2017 15:46:57 +0000 (17:46 +0200)
Toolkit.js

index 277276d670796f1c10da2143544ca03b784805b2..4849559b3edf23efac98bedd041d4f1764f43b92 100644 (file)
@@ -190,6 +190,19 @@ Ext.define('Proxmox.Datepicker', {
     hideMode: 'visibility'
 });
 
+// ExtJS 6.0.1 has no get/setSubmitValue() (although you find it in the docs).
+Ext.define('Proxmox.form.field.Text', {
+    override: 'Ext.form.field.Text',
+
+    setSubmitValue: function(v) {
+       this.submitValue = v;
+    },
+
+    getSubmitValue: function(v) {
+       return this.submitValue;
+    }
+});
+
 // force alert boxes to be rendered with an Error Icon
 // since Ext.Msg is an object and not a prototype, we need to override it
 // after the framework has been initiated