From 238d42b0cddce597c7302a7237c2cb6ea4f2fd28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20St=C3=B6ckel?= Date: Mon, 21 Jun 2010 09:47:18 +0000 Subject: [PATCH] Fixed problems with older firefox versions --- jdots/js/egw_fw_ui.js | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/jdots/js/egw_fw_ui.js b/jdots/js/egw_fw_ui.js index 33d571036b..d48bb031af 100644 --- a/jdots/js/egw_fw_ui.js +++ b/jdots/js/egw_fw_ui.js @@ -394,18 +394,6 @@ function egw_fw_ui_tab(_parent, _contHeaderDiv, _contDiv, _icon, _callback, } ); - //Create the icon and append it to the header div - var icon = document.createElement("img"); - $(icon).addClass("egw_fw_ui_tab_icon"); - icon.src = _icon; - icon.alt = 'Tab icon'; - $(this.headerDiv).append(icon); - - //Create the title h1 and append it to the header div - this.headerH1 = document.createElement("h1"); - this.setTitle(''); - $(this.headerDiv).append(this.headerH1); - //Create the close button and append it to the header div this.closeButton = document.createElement("span"); this.closeButton._callbackObject = new egw_fw_class_callback(this, _closeCallback); @@ -426,9 +414,28 @@ function egw_fw_ui_tab(_parent, _contHeaderDiv, _contDiv, _icon, _callback, { this.closeButton.style.styleFloat = 'none'; } + else + { + $(this.headerDiv).append(this.closeButton); + } + + //Create the icon and append it to the header div + var icon = document.createElement("img"); + $(icon).addClass("egw_fw_ui_tab_icon"); + icon.src = _icon; + icon.alt = 'Tab icon'; + $(this.headerDiv).append(icon); + + //Create the title h1 and append it to the header div + this.headerH1 = document.createElement("h1"); + this.setTitle(''); + $(this.headerDiv).append(this.headerH1); + + if (typeof jQuery.browser['msie'] != 'undefined') + { + $(this.headerDiv).append(this.closeButton); + } - $(this.headerDiv).append(this.closeButton); - this.contentDiv = document.createElement("div"); $(this.contentDiv).addClass("egw_fw_ui_tab_content"); $(this.contentDiv).hide();