pari: trunk r848 - /trunk/config/setup/4.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed May 2 10:51:51 MST 2007


Author: pari
Date: Wed May  2 12:51:50 2007
New Revision: 848

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=848
Log:
set proper path to service providers logos

Modified:
    trunk/config/setup/4.html

Modified: trunk/config/setup/4.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/4.html?view=diff&rev=848&r1=847&r2=848
==============================================================================
--- trunk/config/setup/4.html (original)
+++ trunk/config/setup/4.html Wed May  2 12:51:50 2007
@@ -94,8 +94,16 @@
 
 providercallbacks.postselect = function() {
 	var _pl = _$('providerlink') ;
+	var f = _$('provider');
+
 	try{
-		var f = _$('provider');
+		_$('providerlogo').style.display = "";
+		_$('providerlogo').setAttribute( "src" , "../" + f.stored_config.catbyname[f.value].fieldbyname['providerlogo'] );
+	}catch(err){
+		_$('providerlogo').style.display = "none";
+	}
+
+	try{
 		var g = f.stored_config.catbyname[f.value].fieldbyname['regurl'] ;
 		_pl.href= ( g ) ? g :'#' ;
 		_pl.target = ( g ) ? '_blank' : '';
@@ -1032,7 +1040,7 @@
 	<tr>	<td style='width:80px' valign='top' class="field_text">Provider:</td>
 		<td><select id='provider' class="input9"></select></td>
 	</tr>
-	<tr><td colspan='2' align='center'><A href="#" id="providerlink"><img id='providerlogo' style='visibility:hidden;' border=0></A></td></tr>
+	<tr><td colspan='2' align='center'><A href="#" id="providerlink"><img id='providerlogo' style='display:none' border=0></A></td></tr>
 	<tr><td colspan='2' align='center'><div id='providerdesc' align='left' style='width:230px; font-size:10px'></div></td></tr>
 	<tr>
 		<td class="field_text">Username:</td>



More information about the asterisk-gui-commits mailing list