add missing setSubmitValue() for text fields

This commit is contained in:
Dietmar Maurer 2017-03-29 17:46:57 +02:00
parent 1b07a95ac8
commit 1d9804a953

View 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