f49cd6c135
store.getData() returns an 'Ext.util.Collection' which is a special class that does more than being an array of records. Namely, it can have 'observers' which can react on the change of the collection Here, the 'onWidgetAttach' callback will be called twice on the first row add and the widgets (and thus stores) are cached by extjs. When doing a 'setData' of a Collection, it tries to add the store as an observer, but due to the above caching and multiple calling this fails since the store is already an observer. For this reason, we want to actually copy the records (which neither the store, nor the Collection has a method for...) This gives us an additional benefit: The different pbsGroupSelectors can sort independently now, before it was all linked to the original store's collection. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> |
||
---|---|---|
.. | ||
button | ||
config | ||
css | ||
dashboard | ||
data | ||
datastore | ||
form | ||
images | ||
panel | ||
tape | ||
window | ||
Application.js | ||
Dashboard.js | ||
DirectoryList.js | ||
index.hbs | ||
LoginView.js | ||
MainView.js | ||
Makefile | ||
NavigationTree.js | ||
OnlineHelpInfo.js | ||
ServerAdministration.js | ||
ServerStatus.js | ||
Subscription.js | ||
SystemConfiguration.js | ||
Utils.js | ||
VersionInfo.js | ||
ZFSList.js |