mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-03 04:53:26 +00:00
task type selector: add clear trigger
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
3571d71343
commit
2c0a748f42
@ -9,4 +9,22 @@ Ext.define('Proxmox.form.TaskTypeSelector', {
|
||||
me.store = Object.keys(Proxmox.Utils.task_desc_table).sort();
|
||||
me.callParent();
|
||||
},
|
||||
listeners: {
|
||||
change: function(field, newValue, oldValue) {
|
||||
if (newValue !== this.originalValue) {
|
||||
this.triggers.clear.setVisible(true);
|
||||
}
|
||||
},
|
||||
},
|
||||
triggers: {
|
||||
clear: {
|
||||
cls: 'pmx-clear-trigger',
|
||||
weight: -1,
|
||||
hidden: true,
|
||||
handler: function() {
|
||||
this.triggers.clear.setVisible(false);
|
||||
this.setValue(this.originalValue);
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user