bkruse: branch asterisknow r839 - in /branches/asterisknow: ./ config/ config...

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue May 1 14:39:04 MST 2007


Author: bkruse
Date: Tue May  1 16:39:03 2007
New Revision: 839

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=839
Log:
Merged revisions 836,838 via svnmerge from
https://origsvn.digium.com/svn/asterisk-gui/trunk

........
r836 | pari | 2007-05-01 12:37:47 -0500 (Tue, 01 May 2007) | 1 line

Fix: GUI not properly identifying response timeout and digit timeout
........
r838 | bkruse | 2007-05-01 16:36:26 -0500 (Tue, 01 May 2007) | 1 line

Going back to the old way, registering events for the onclick, as onclick directly in the div/radio button defined does NOT work.
........

Modified:
    branches/asterisknow/   (props changed)
    branches/asterisknow/config/menus.html
    branches/asterisknow/config/setup/4.html

Propchange: branches/asterisknow/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Tue May  1 16:39:03 2007
@@ -1,1 +1,1 @@
-/trunk:1-449,489-540,542-557,559,561-577,580-586,588-826
+/trunk:1-449,489-540,542-557,559,561-577,580-586,588-838

Modified: branches/asterisknow/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/menus.html?view=diff&rev=839&r1=838&r2=839
==============================================================================
--- branches/asterisknow/config/menus.html (original)
+++ branches/asterisknow/config/menus.html Tue May  1 16:39:03 2007
@@ -58,12 +58,12 @@
 		temp[2] = temp[2].replace(/\)/, "");
 		return "Play '" + temp[2] + "' & Listen for KeyPress";
 	}
-	if( temp[2].match("DigitTimeout") ){
+	if( temp[2].match("TIMEOUT") && temp[2].match("digit") ){
 		temp[2] = temp[2].replace(/Set\(TIMEOUT\(digit\)\=/, "");
 		temp[2] = temp[2].replace(/\)/, "");
 		return "Wait '"+ temp[2] +"' sec for KeyPress";
 	}
-	if( temp[2].match("TIMEOUT") ){
+	if( temp[2].match("TIMEOUT") && temp[2].match("response") ){
 		temp[2] = temp[2].replace(/Set\(TIMEOUT\(response\)\=/, "");
 		temp[2] = temp[2].replace(/\)/, "");
 		return "Response Timeout to '" + temp[2] + "' sec";

Modified: branches/asterisknow/config/setup/4.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/setup/4.html?view=diff&rev=839&r1=838&r2=839
==============================================================================
--- branches/asterisknow/config/setup/4.html (original)
+++ branches/asterisknow/config/setup/4.html Tue May  1 16:39:03 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