bkruse: branch asterisknow r1473 - /branches/asterisknow/config/trunks.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Aug 28 18:19:57 CDT 2007


Author: bkruse
Date: Tue Aug 28 18:19:57 2007
New Revision: 1473

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1473
Log:
Merged revisions 1465 via svnmerge from 
https://origsvn.digium.com/svn/asterisk-gui/branches/1.4

........
r1465 | bkruse | 2007-08-28 15:58:03 -0500 (Tue, 28 Aug 2007) | 6 lines

Changes that Siya mentioned. Now the gui will also
disable the digitaltrunk box when your are editing
a trunk, and its not a new trunk.
Also makes sure that the onclick event does not
get fired out when its disabled.
(closes issue #10149)

........

Modified:
    branches/asterisknow/config/trunks.html

Modified: branches/asterisknow/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/trunks.html?view=diff&rev=1473&r1=1472&r2=1473
==============================================================================
--- branches/asterisknow/config/trunks.html (original)
+++ branches/asterisknow/config/trunks.html Tue Aug 28 18:19:57 2007
@@ -146,8 +146,8 @@
 callbacks.postselect = function(){
 	if( _$('trunkstylecustomvoip').checked ){
 		// Custom VOIP
-		var tmp = $('trunkname').value.split("Custom - ")  ;
-		_$('customvoip_name').value = tmp[1];
+		var tmp = _$('trunkname').value.split("Custom - ")  ;
+		_$('customvoip_name').value = (tmp[1]) ? tmp[1] : (_$('trunkname').value) ? _$('trunkname').value : "No Comment/Trunk Name Set";
 		_$('customvoip_username').value = _$('username').value;
 		_$('customvoip_secret').value = _$('secret').value;
 		_$('customvoip_protocol').selectedIndex = ( _$('hassip').value  == "yes" ) ? 1 : 0;




More information about the asterisk-gui-commits mailing list