pari: trunk r772 - /trunk/config/trunks.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Thu Apr 26 11:59:06 MST 2007
Author: pari
Date: Thu Apr 26 13:59:05 2007
New Revision: 772
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=772
Log:
Bug Fix: When Editing an Analog trunk - the first analog port is checked irrespective of waht trunks are selected
Modified:
trunk/config/trunks.html
Modified: trunk/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/trunks.html?view=diff&rev=772&r1=771&r2=772
==============================================================================
--- trunk/config/trunks.html (original)
+++ trunk/config/trunks.html Thu Apr 26 13:59:05 2007
@@ -133,6 +133,9 @@
}
callbacks.cancelnewcategory = function(){
+ remove_event( _$('trunkstyleanalog') , 'click' , activateanalogvoip );
+ remove_event( _$('trunkstylevoip') , 'click' , activateanalogvoip );
+ remove_event( _$('trunkstylecustomvoip') , 'click' , activateanalogvoip );
hideSPdetails();
}
@@ -402,6 +405,11 @@
_$('customvoip').style.display="none";
_$('userscontent_title').innerHTML = "Add Service Provider";
isnewtrunk = 1;
+
+ add_event( _$('trunkstyleanalog') , 'click' , activateanalogvoip );
+ add_event( _$('trunkstylevoip') , 'click' , activateanalogvoip );
+ add_event( _$('trunkstylecustomvoip') , 'click' , activateanalogvoip );
+
return tmp;
}
@@ -687,6 +695,7 @@
if(sp_value == _devices.options[i].value ){
_devices.selectitem(i);
showSPdetails();
+ activateanalogvoip();
break;
}
}
@@ -946,9 +955,9 @@
<div id='cabinet' style='width:0;overflow:hidden'><select id='hiddenglobals'></select></div>
<fieldset>
<legend><B> Provider Type: </B></legend>
- <LABEL FOR="trunkstyleanalog"><input name='trunkstyle' type='radio' id='trunkstyleanalog' onclick='activateanalogvoip()' value='analog'>Analog</LABEL><BR>
- <LABEL FOR="trunkstylevoip"><input name='trunkstyle' type='radio' id='trunkstylevoip' onclick='activateanalogvoip()' value='voip'>VoIP</LABEL><BR>
- <LABEL FOR="trunkstylecustomvoip"><input name='trunkstyle' type='radio' id='trunkstylecustomvoip' onclick='activateanalogvoip()' value='customvoip'>Custom VoIP</LABEL>
+ <LABEL FOR="trunkstyleanalog"><input name='trunkstyle' type='radio' id='trunkstyleanalog' value='analog'>Analog</LABEL><BR>
+ <LABEL FOR="trunkstylevoip"><input name='trunkstyle' type='radio' id='trunkstylevoip' value='voip'>VoIP</LABEL><BR>
+ <LABEL FOR="trunkstylecustomvoip"><input name='trunkstyle' type='radio' id='trunkstylecustomvoip' value='customvoip'>Custom VoIP</LABEL>
</fieldset>
<div id="div_providername" style="display:none">
<BR><BR><B>Provider Name:</B><BR><input id="name" size=10 class='input8'>
More information about the asterisk-gui-commits
mailing list