From: Dietmar Maurer Date: Wed, 29 Mar 2017 15:46:57 +0000 (+0200) Subject: add missing setSubmitValue() for text fields X-Git-Url: https://git.proxmox.com/?p=proxmox-widget-toolkit.git;a=commitdiff_plain;h=1d9804a953c7613bd4283cecc07115077c521417 add missing setSubmitValue() for text fields --- diff --git a/Toolkit.js b/Toolkit.js index 277276d..4849559 100644 --- a/Toolkit.js +++ b/Toolkit.js @@ -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