mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-29 23:03:21 +00:00
do not override getSubmitValue, add note about strange semantics
This commit is contained in:
parent
a33ba257ed
commit
a55813d6d7
@ -201,17 +201,15 @@ Ext.define('Proxmox.Datepicker', {
|
|||||||
hideMode: 'visibility'
|
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', {
|
Ext.define('Proxmox.form.field.Text', {
|
||||||
override: 'Ext.form.field.Text',
|
override: 'Ext.form.field.Text',
|
||||||
|
|
||||||
setSubmitValue: function(v) {
|
setSubmitValue: function(v) {
|
||||||
this.submitValue = v;
|
this.submitValue = v;
|
||||||
},
|
},
|
||||||
|
|
||||||
getSubmitValue: function(v) {
|
|
||||||
return this.submitValue;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// force alert boxes to be rendered with an Error Icon
|
// force alert boxes to be rendered with an Error Icon
|
||||||
|
Loading…
Reference in New Issue
Block a user