diff --git a/www/datastore/OptionView.js b/www/datastore/OptionView.js index 25fe71dc..fdba54df 100644 --- a/www/datastore/OptionView.js +++ b/www/datastore/OptionView.js @@ -64,6 +64,15 @@ Ext.define('PBS.Datastore.Options', { }, }); }, + + stopUpdates: function() { + let view = this.getView(); + view.rstore.stopUpdate(); + }, + startUpdates: function() { + let view = this.getView(); + view.rstore.startUpdate(); + }, }, tbar: [ @@ -84,9 +93,9 @@ Ext.define('PBS.Datastore.Options', { ], listeners: { - activate: function() { this.rstore.startUpdate(); }, - destroy: function() { this.rstore.stopUpdate(); }, - deactivate: function() { this.rstore.stopUpdate(); }, + activate: 'startUpdates', + beforedestroy: 'stopUpdates', + deactivate: 'stopUpdates', itemdblclick: 'edit', },