mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-08-04 10:14:47 +00:00
add missing setSubmitValue() for text fields
This commit is contained in:
parent
1b07a95ac8
commit
1d9804a953
13
Toolkit.js
13
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
|
||||
|
Loading…
Reference in New Issue
Block a user