[icinga-checkins] icinga.org: icinga-web/master: * IE fix for tab closing

git at icinga.org git at icinga.org
Mon Jan 24 15:59:06 CET 2011


Module: icinga-web
Branch: master
Commit: 572bb970efadfe19535837501b3363c95d708ac1
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=572bb970efadfe19535837501b3363c95d708ac1

Author: Marius Hein <marius.hein at netways.de>
Date:   Mon Jan 24 15:04:05 2011 +0100

* IE fix for tab closing

---

 app/modules/Cronks/lib/js/Tabhelper.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/app/modules/Cronks/lib/js/Tabhelper.js b/app/modules/Cronks/lib/js/Tabhelper.js
index d8607b7..6962b9d 100755
--- a/app/modules/Cronks/lib/js/Tabhelper.js
+++ b/app/modules/Cronks/lib/js/Tabhelper.js
@@ -140,7 +140,11 @@ Cronk.util.CronkTabHelper = Ext.extend(Object, {
 					handler: function() {
 						tp.items.each(function(item){
 							if(item.closable && item != ctxItem){
-								tp.remove(item);
+								// IE stops there because Ext.fly
+								try {
+									tp.remove(item, true);
+								}
+								catch(e) {}
 							}
 						});
 					}





More information about the icinga-checkins mailing list