bkruse: trunk r838 - /trunk/config/setup/4.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Tue May 1 14:36:26 MST 2007
Author: bkruse
Date: Tue May 1 16:36:26 2007
New Revision: 838
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=838
Log:
Going back to the old way, registering events for the onclick, as onclick directly in the div/radio button defined does NOT work.
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=838&r1=837&r2=838
==============================================================================
--- trunk/config/setup/4.html (original)
+++ trunk/config/setup/4.html Tue May 1 16:36:26 2007
@@ -471,6 +471,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;
}
@@ -750,13 +755,13 @@
<select id='hiddenglobals'></select>
</div> Provider Type:<BR>
<LABEL FOR="trunkstyleanalog">
- <input name='trunkstyle' type='radio' id='trunkstyleanalog' onclick='activateanalogvoip()' value='analog'>Analog
+ <input name='trunkstyle' type='radio' id='trunkstyleanalog' value='analog'>Analog
</LABEL><BR>
<LABEL FOR="trunkstylevoip">
- <input name='trunkstyle' type='radio' id='trunkstylevoip' onclick='activateanalogvoip()' value='voip'>VoIP
+ <input name='trunkstyle' type='radio' id='trunkstylevoip' value='voip'>VoIP
</LABEL><BR>
<LABEL FOR="trunkstylecustomvoip">
- <input name='trunkstyle' type='radio' id='trunkstylecustomvoip' onclick='activateanalogvoip()' value='customvoip'>Custom VoIP
+ <input name='trunkstyle' type='radio' id='trunkstylecustomvoip' value='customvoip'>Custom VoIP
</LABEL>
<div id="div_providername" style="display:none">
<BR><BR><B>Provider Name:</B><BR>
More information about the asterisk-gui-commits
mailing list