bkruse: branch 1.4 r1471 - /branches/1.4/config/trunks.html

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


Author: bkruse
Date: Tue Aug 28 18:18:30 2007
New Revision: 1471

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1471
Log:
Fixed a problem so that now instead of parsing
for Custom - for the comment line, we will first
parse for that, if not found, inline the whole value.
The previous case could cause 'undefined' as the
trunk comment, as tmp[1] did not contain anything

Modified:
    branches/1.4/config/trunks.html

Modified: branches/1.4/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/branches/1.4/config/trunks.html?view=diff&rev=1471&r1=1470&r2=1471
==============================================================================
--- branches/1.4/config/trunks.html (original)
+++ branches/1.4/config/trunks.html Tue Aug 28 18:18:30 2007
@@ -147,8 +147,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