pari: trunk r185 - /trunk/config/setup/4.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Wed Dec 20 14:59:15 MST 2006
Author: pari
Date: Wed Dec 20 15:59:15 2006
New Revision: 185
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=185
Log:
fix: providers images are not being displayed during the setup wizard
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=185&r1=184&r2=185
==============================================================================
--- trunk/config/setup/4.html (original)
+++ trunk/config/setup/4.html Wed Dec 20 15:59:15 2006
@@ -76,6 +76,22 @@
parent.astmanEngine.config2list("extensions.conf", $('hiddenglobals'), new Array, globalvars);
}
+ providercallbacks.postselect = function(){
+ if ($('provider').selectIndex == -1 || $('provider').selectIndex == ""){
+ return true;
+ }else{
+ var element = document.getElementById("providerlogo_image");
+ while (element.firstChild) {
+ element.removeChild(element.firstChild);
+ }
+ var sp1 = document.createElement("img");
+ sp1.src = "../" + $('providerlogo').value ;
+ sp1.width="214";
+ sp1.height="46";
+ $('providerlogo_image').appendChild(sp1);
+ }
+ }
+
callbacks.format = function(t) {
if ((t.name == 'general'))
return null;
@@ -589,7 +605,7 @@
<table align="center" class="font85">
<tr><td style='width:80px' valign='top' class="field_text">Provider:</td><td><select size='4' id='provider' style='width:200px' altonchange='selectprovider()' class="input8"></select></td></tr>
<tr><td colspan='2' align='center'><div style="height:15px" id='status'></div></td></tr>
- <tr><td colspan='2' align='center'><img id='providerlogo' style='visibility:hidden;width:214px;height:46px'></td></tr>
+ <tr><td colspan='2' align='center' id='providerlogo_image'></td></tr>
<tr><td colspan='2' align='center'><div id='providerdesc' align='left' style='width:230px;height:100px; font-size:10px'></div></td></tr>
<tr><td class="field_text">Username:</td><td><input size='20' id='username' class="input8"></td></tr>
<tr><td class="field_text">Password:</td><td><input size='20' id='secret' class="input8"></td></tr>
@@ -613,6 +629,7 @@
<input id="port" type="hidden">
<input id="fromuser" type="hidden">
<input id="fromdomain" type="hidden">
+ <input id="providerlogo" type="hidden">
<tr>
<td height=10></td>
<td></td>
More information about the asterisk-gui-commits
mailing list