pari: trunk r773 - /trunk/config/trunks.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Thu Apr 26 13:05:10 MST 2007
Author: pari
Date: Thu Apr 26 15:05:09 2007
New Revision: 773
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=773
Log:
Fix: Editing analog trunks not working properly
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=773&r1=772&r2=773
==============================================================================
--- trunk/config/trunks.html (original)
+++ trunk/config/trunks.html Thu Apr 26 15:05:09 2007
@@ -234,6 +234,23 @@
}
dids_array.push( _name.value );
}else{
+
+ if( _$('trunkstyleanalog').checked ){
+ _$('context').value = asterisk_guiTDPrefix + _$('name').value ;
+ var needcomma = 0 ;
+ var count = 0 ;
+ _$('trunkname').value = "" ;
+ for (var x=0;x< _$('zapchan').options.length;x++) {
+ if (_$('zapchan').options[x].selected) {
+ if(needcomma){ _$('trunkname').value += "," }
+ needcomma = 1 ;
+ _$('trunkname').value += _$('zapchan').options[x].value ;
+ count++ ;
+ }
+ }
+ _$('trunkname').value = ((count > 1) ? "Ports ":"Port ") + _$('trunkname').value ;
+ }
+
old_trunkname = _dvcs_v ;
if( _dvcs_v != _name.value ){ // if the trunk name is changed , change the name in dids_array
for( var i=0 ; i < dids_array.length; i ++){ if( dids_array[i] == _dvcs_v ) { dids_array[i] = _name.value ; break; } }
@@ -257,7 +274,12 @@
}else{
if(old_trunkname != _$('name').value ){ update_didcontext(old_trunkname, _$('name').value); } // rename DID if needed
}
- return false;
+
+
+ hideSPdetails();
+ loadServiceProvidersintotable();
+
+ return true;
}
More information about the asterisk-gui-commits
mailing list