pari: trunk r403 - in /trunk/config: ./ scripts/ stylesheets/

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Mar 7 17:02:51 MST 2007


Author: pari
Date: Wed Mar  7 18:02:50 2007
New Revision: 403

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=403
Log:
trying to make tooltips more noticeable

Modified:
    trunk/config/cfgadvanced.html
    trunk/config/cfgappliance.html
    trunk/config/cfgbasic.html
    trunk/config/scripts/tooltip.js
    trunk/config/stylesheets/schwing.css

Modified: trunk/config/cfgadvanced.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgadvanced.html?view=diff&rev=403&r1=402&r2=403
==============================================================================
--- trunk/config/cfgadvanced.html (original)
+++ trunk/config/cfgadvanced.html Wed Mar  7 18:02:50 2007
@@ -169,11 +169,17 @@
 	}
 
 	function show_Acctooltip(name, tip){
-		if(loggedon == 1)
-		$('tooltip').innerHTML = tip;
+		if( loggedon != 1){ return; }
+			new Rico.Effect.FadeTo( 'tooltip_round', .01, 100, 10, {
+			complete:function() { 
+				$('tooltip').innerHTML = 	tip ; 
+				new Rico.Effect.FadeTo( 'tooltip_round', 1, 10, 1, {complete:function() { } } );		
+			} 
+		} );
 	}
 
 	function registerajax() {
+		Rico.Corner.round('tooltip_round', {compact:true});
 		var pnameheight = 22;
 		var pheight = (503  - (pnameheight*panels.length) ) ;
 		accordion = new Rico.Accordion( $('configpanel'), { panelHeight: pheight,onHideTab:fademainscreen,onShowTab:showmainscreen });
@@ -257,9 +263,7 @@
 		</td>
 		<td valign=top width=250 height="505">
 			<div id="logoutlink" class="mainscreenTooltipBar" align=right style="font-weight:bold;cursor: pointer; cursor: hand;">&nbsp;</div>
-			<div style="margin-left: 4px;">
-			<BR>
-			<font style="margin-left:4px; font-family : Trebuchet MS, Arial, Helvetica, sans-serif;font-size: 11px; font-weight: bold">Tooltips:</font>
+			<div id="tooltip_round" class="tooltip_round">
 			<div id='tooltip' style="margin-left:4px; font-family : Trebuchet MS, Arial, Helvetica, sans-serif;font-size: 11px; "><script>document.write(tooltip_default);</script></div>
 			</div>
 		</td>

Modified: trunk/config/cfgappliance.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgappliance.html?view=diff&rev=403&r1=402&r2=403
==============================================================================
--- trunk/config/cfgappliance.html (original)
+++ trunk/config/cfgappliance.html Wed Mar  7 18:02:50 2007
@@ -157,11 +157,17 @@
 	}
 
 	function show_Acctooltip(name, tip){
-		if(loggedon == 1)
-		$('tooltip').innerHTML = tip;
+		if( loggedon != 1){ return; }
+			new Rico.Effect.FadeTo( 'tooltip_round', .01, 100, 10, {
+			complete:function() { 
+				$('tooltip').innerHTML = 	tip ; 
+				new Rico.Effect.FadeTo( 'tooltip_round', 1, 10, 1, {complete:function() { } } );		
+			} 
+		} );
 	}
 
 	function registerajax() {
+		Rico.Corner.round('tooltip_round', {compact:true});
 		if( navigator.userAgent.indexOf("MSIE") != -1 || navigator.userAgent.indexOf("Konqueror") != -1 || navigator.userAgent.indexOf("Safari") != -1 ){
 			gui_alert(browser_alert);
 		}
@@ -242,9 +248,7 @@
 		</td>
 		<td valign=top width=250 height="505">
 			<div id="logoutlink" class="mainscreenTooltipBar" align=right style="font-weight:bold;cursor: pointer; cursor: hand;">&nbsp;</div>
-			<div style="margin-left: 4px;">
-			<BR>
-			<font style="margin-left:4px; font-family : Trebuchet MS, Arial, Helvetica, sans-serif;font-size: 11px; font-weight: bold">Tooltips:</font>
+			<div id="tooltip_round" class="tooltip_round">
 			<div id='tooltip' style="margin-left:4px; font-family : Trebuchet MS, Arial, Helvetica, sans-serif;font-size: 11px; "><script>document.write(tooltip_default);</script></div>
 			</div>
 		</td>

Modified: trunk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgbasic.html?view=diff&rev=403&r1=402&r2=403
==============================================================================
--- trunk/config/cfgbasic.html (original)
+++ trunk/config/cfgbasic.html Wed Mar  7 18:02:50 2007
@@ -163,12 +163,17 @@
 	}
 
 	function show_Acctooltip(name, tip){
-		if(loggedon == 1)
-		$('tooltip').innerHTML = tip;
-	}
-
+		if( loggedon != 1){ return; }
+			new Rico.Effect.FadeTo( 'tooltip_round', .01, 100, 10, {
+			complete:function() { 
+				$('tooltip').innerHTML = 	tip ; 
+				new Rico.Effect.FadeTo( 'tooltip_round', 1, 10, 1, {complete:function() { } } );		
+			} 
+		} );
+	}
 
 	function registerajax() {
+		Rico.Corner.round('tooltip_round', {compact:true});
 		if( navigator.userAgent.indexOf("MSIE") != -1 || navigator.userAgent.indexOf("Konqueror") != -1 || navigator.userAgent.indexOf("Safari") != -1 ){
 			gui_alert(browser_alert);
 		}
@@ -259,9 +264,7 @@
 		</td>
 		<td valign=top width=250 height="505">
 			<div id="logoutlink" class="mainscreenTooltipBar" align=right style="font-weight:bold;cursor: pointer; cursor: hand;">&nbsp;</div>
-			<div style="margin-left: 4px;">
-			<BR>
-			<font style="margin-left:4px; font-family : Trebuchet MS, Arial, Helvetica, sans-serif;font-size: 11px; font-weight: bold">Tooltips:</font>
+			<div id="tooltip_round" class="tooltip_round">
 			<div id='tooltip' style="margin-left:4px; font-family : Trebuchet MS, Arial, Helvetica, sans-serif;font-size: 11px; "><script>document.write(tooltip_default);</script></div>
 			</div>
 		</td>

Modified: trunk/config/scripts/tooltip.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/tooltip.js?view=diff&rev=403&r1=402&r2=403
==============================================================================
--- trunk/config/scripts/tooltip.js (original)
+++ trunk/config/scripts/tooltip.js Wed Mar  7 18:02:50 2007
@@ -4,7 +4,12 @@
 var tooltips = new Object;
 
 function show_tooltip(lang, file,tip){
-	parent.parent.$('tooltip').innerHTML = 	tooltips[file][lang][tip];
+	new top.Rico.Effect.FadeTo( 'tooltip_round', .01, 100, 10, {
+		complete:function() { 
+			top.$('tooltip').innerHTML = 	tooltips[file][lang][tip]; 
+			new top.Rico.Effect.FadeTo( 'tooltip_round', 1, 10, 1, {complete:function() { } } );		
+		} 
+	} );
 }
 
 

Modified: trunk/config/stylesheets/schwing.css
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/stylesheets/schwing.css?view=diff&rev=403&r1=402&r2=403
==============================================================================
--- trunk/config/stylesheets/schwing.css (original)
+++ trunk/config/stylesheets/schwing.css Wed Mar  7 18:02:50 2007
@@ -269,3 +269,9 @@
 		border-bottom-style:solid;
 		border-bottom-width:4px;
  }
+
+div.tooltip_round {
+/*   background:#C0C081;*/
+   background:#8A8AC4;
+   margin:6pt 5pt 0pt 6pt;
+}



More information about the asterisk-gui-commits mailing list