bkruse: trunk r1076 - /trunk/config/trunks.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Jun 13 14:40:16 MST 2007


Author: bkruse
Date: Wed Jun 13 16:40:15 2007
New Revision: 1076

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1076
Log:
Added support to be able to tell if its a Bandwidth account or not. If it is, it will show you it does not need a username, instead of leaving it blank, which can be confusing

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=1076&r1=1075&r2=1076
==============================================================================
--- trunk/config/trunks.html (original)
+++ trunk/config/trunks.html Wed Jun 13 16:40:15 2007
@@ -323,12 +323,13 @@
 	var _provider = _$('provider');
 	var _zapchan = _$('zapchan');
 	var _trunkname = _$('trunkname');
+	var _username2 = (_$('username').value) ? ' - ' + _$('username').value : ' - (No Username Needed)'; 
 	_$('hasexten').value = 'no';
 	_$('context').value =  asterisk_guiTDPrefix + _$('name').value  ;
 
 	if (_$('trunkstylevoip').checked) {
 		provider = _provider.stored_config.catbyname[_provider.value];
-		_trunkname.value = _provider.options[_provider.selectedIndex].innerHTML + " - " + _$('username').value;
+		_trunkname.value = _provider.options[_provider.selectedIndex].innerHTML + _username2;
 		_$('hassip').value = provider.fieldbyname['hassip'];
 		_$('hasiax').value = provider.fieldbyname['hasiax'];
 		_$('registeriax').value = provider.fieldbyname['registeriax'];



More information about the asterisk-gui-commits mailing list