[Mapbender-commits] r2190 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Mar 6 06:30:57 EST 2008
Author: nimix
Date: 2008-03-06 06:30:57 -0500 (Thu, 06 Mar 2008)
New Revision: 2190
Modified:
trunk/mapbender/http/javascripts/mod_horizTab.php
trunk/mapbender/http/javascripts/mod_horizTabs.js
Log:
alter style handeling
Modified: trunk/mapbender/http/javascripts/mod_horizTab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_horizTab.php 2008-03-06 11:23:43 UTC (rev 2189)
+++ trunk/mapbender/http/javascripts/mod_horizTab.php 2008-03-06 11:30:57 UTC (rev 2190)
@@ -23,7 +23,17 @@
$tab_ids = array();
include(dirname(__FILE__)."/../include/dyn_php.php");
+include(dirname(__FILE__)."/../include/dyn_js.php");
+//default styles
+echo 'try{if(horiztab_style){}}catch(e){horiztab_style="-moz-border-radius-topleft: 5px;-moz-border-radius-topright: 5px;-webkit-border-top-left-radius: 5px;-webkit-border-top-right-radius: 5px;font-size:7pt;border:solid #222222 1px;padding:1px 8px 1px 8px;line-height:22px;background:#aaaaaa;cursor:pointer;white-space:nowrap;";}';
+echo 'try{if(horiztab_style_active){}}catch(e){horiztab_style_active="-moz-border-radius-topleft: 5px;-moz-border-radius-topright: 5px;-webkit-border-top-left-radius: 5px;-webkit-border-top-right-radius: 5px;font-size:7pt;border:solid #222222 1px;border-bottom:solid #f8f8f8 1px;padding:2px 10px 1px 10px;line-height:22px;background:#eeeeee;font-weight:bold;cursor:pointer;white-space:nowrap;";}';
+
+//load styles
+echo "var styleObj = new StyleTag();";
+echo 'styleObj.addClass("tabButton", horiztab_style);';
+echo 'styleObj.addClass("tabButtonActive", horiztab_style_active);';
+
//write tab creation javascript function
echo "open_tab_".$e_id."=".($open_tab?$open_tab:0).";\n";
echo "function init_".$e_id."(){";
Modified: trunk/mapbender/http/javascripts/mod_horizTabs.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_horizTabs.js 2008-03-06 11:23:43 UTC (rev 2189)
+++ trunk/mapbender/http/javascripts/mod_horizTabs.js 2008-03-06 11:30:57 UTC (rev 2190)
@@ -3,16 +3,6 @@
* COPYRIGHT: (C) 2001 by ccgis. This program is free software under the GNU General Public
* License (>=v2). Read the file gpl.txt that comes with Mapbender for details.
*/
-
-//default styles
-try{if(horiztab_style){}}catch(e){horiztab_style="-moz-border-radius-topleft: 5px;-moz-border-radius-topright: 5px;-webkit-border-top-left-radius: 5px;-webkit-border-top-right-radius: 5px;font-size:7pt;border:solid #222222 1px;padding:1px 8px 1px 8px;line-height:22px;background:#aaaaaa;cursor:pointer;white-space:nowrap;";}
-try{if(horiztab_style_active){}}catch(e){horiztab_style_active="-moz-border-radius-topleft: 5px;-moz-border-radius-topright: 5px;-webkit-border-top-left-radius: 5px;-webkit-border-top-right-radius: 5px;font-size:7pt;border:solid #222222 1px;border-bottom:solid #f8f8f8 1px;padding:2px 10px 1px 10px;line-height:22px;background:#eeeeee;font-weight:bold;cursor:pointer;white-space:nowrap;";}
-
-//load styles
-var styleObj = new StyleTag();
-styleObj.addClass("tabButton", horiztab_style);
-styleObj.addClass("tabButtonActive", horiztab_style_active);
-
(function($){
/**
More information about the Mapbender_commits
mailing list