mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-28 10:51:35 +00:00
add returnCompleteRecord to ObjectStore
this can be useful when needing multiple fields Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
a498f27991
commit
59db703100
@ -6,6 +6,16 @@
|
||||
Ext.define('Proxmox.data.ObjectStore', {
|
||||
extend: 'Proxmox.data.UpdateStore',
|
||||
|
||||
returnCompleteRecord: function() {
|
||||
var me = this;
|
||||
var record = Ext.create('Ext.data.Model');
|
||||
me.getData().each(function(item) {
|
||||
record.set(item.data.key, item.data.value);
|
||||
});
|
||||
record.commit(true);
|
||||
return record;
|
||||
},
|
||||
|
||||
constructor: function(config) {
|
||||
var me = this;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user