[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Added tbar existence check

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


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

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

* Added tbar existence check

---

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

diff --git a/app/modules/Cronks/lib/js/grid/GridPanel.js b/app/modules/Cronks/lib/js/grid/GridPanel.js
index 9a53b0d..f5d646f 100755
--- a/app/modules/Cronks/lib/js/grid/GridPanel.js
+++ b/app/modules/Cronks/lib/js/grid/GridPanel.js
@@ -202,9 +202,9 @@ Cronk.grid.GridPanel = Ext.extend(Ext.grid.GridPanel, {
 		}, this);
 	},
 	refreshGrid: function() {
-		if(Ext.isFunction(this.getTopToolbar().doRefresh)) {
+		if(Ext.isFunction((this.getTopToolbar() || {}).doRefresh)) {
 			this.getTopToolbar().doRefresh();
-		} else if(Ext.isFunction(this.getBottomToolbar().doRefresh)) {
+		} else if(Ext.isFunction((this.getBottomToolbar() || {}).doRefresh)) {
 			this.getBottomToolbar().doRefresh();
 		} else if(this.getStore()) {	
 			this.getStore().reload();





More information about the icinga-checkins mailing list