]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
do not override getSubmitValue, add note about strange semantics
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 30 Mar 2017 04:30:14 +0000 (06:30 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 30 Mar 2017 04:30:14 +0000 (06:30 +0200)
Toolkit.js

index 811bbca77d2da10c2fb7f7282d47fd0f6f494646..b1709bf791ea0edbbc9739b641e3fb2d26db2816 100644 (file)
@@ -201,17 +201,15 @@ Ext.define('Proxmox.Datepicker', {
     hideMode: 'visibility'
 });
 
-// ExtJS 6.0.1 has no get/setSubmitValue() (although you find it in the docs).
+// ExtJS 6.0.1 has no setSubmitValue() (although you find it in the docs).
+// Note: this.submitValue is a boolean flag, whereas getSubmitValue() returns
+// data to be submitted.
 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