[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Fixed store error on closed tabs caused by refresh

git at icinga.org git at icinga.org
Sun Mar 20 11:26:08 CET 2011


Module: icinga-web
Branch: jmosshammer/default
Commit: 108f1be04299532470e6159605ab3ab019526fdf
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=108f1be04299532470e6159605ab3ab019526fdf

Author: jmosshammer <jmosshammer at debian.localhost>
Date:   Thu Feb 10 17:13:50 2011 +0100

* Fixed store error on closed tabs caused by refresh

---

 app/modules/Cronks/lib/js/grid/GridPanel.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/app/modules/Cronks/lib/js/grid/GridPanel.js b/app/modules/Cronks/lib/js/grid/GridPanel.js
index f5d646f..7a005c3 100755
--- a/app/modules/Cronks/lib/js/grid/GridPanel.js
+++ b/app/modules/Cronks/lib/js/grid/GridPanel.js
@@ -202,6 +202,8 @@ Cronk.grid.GridPanel = Ext.extend(Ext.grid.GridPanel, {
 		}, this);
 	},
 	refreshGrid: function() {
+		if(!this.store)
+			return true;
 		if(Ext.isFunction((this.getTopToolbar() || {}).doRefresh)) {
 			this.getTopToolbar().doRefresh();
 		} else if(Ext.isFunction((this.getBottomToolbar() || {}).doRefresh)) {





More information about the icinga-checkins mailing list