bkruse: branch asterisknow r1469 - /branches/asterisknow/config/trunks.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Tue Aug 28 17:47:18 CDT 2007
Author: bkruse
Date: Tue Aug 28 17:47:17 2007
New Revision: 1469
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1469
Log:
Alot the editability of trunks. With the a modification
to the showhidefields function, you are now able to define
if its not a trunk, or someone is editing the trunk, and
base the fields you want to show on that.
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=1469&r1=1468&r2=1469
==============================================================================
--- branches/asterisknow/config/trunks.html (original)
+++ branches/asterisknow/config/trunks.html Tue Aug 28 17:47:17 2007
@@ -666,8 +666,13 @@
parent.astmanEngine.config2list("zapscan.conf", _$('zapchan'), new Array(), phonecallbacks);
}
-function showhidefields() {
- var provname = _$('provider').value;
+function showhidefields(prov, edit) {
+ /* If it is an edit, we are going to want to display the default */
+ if(edit == 1) {
+ var provname = prov;
+ } else {
+ var provname = _$('provider').value;
+ }
if(provname == "bandwidth") {
for(var x=0; x < opt_userandpass.length; x++) { /* 3 */
_$(opt_userandpass[x]).style.display="none";
@@ -930,6 +935,8 @@
_devices.selectitem(i);
showSPdetails();
activateanalogvoip();
+ var tmp_prov = (_devices.stored_config.catbyname[sp_value].fieldbyname['provider'] ) ? _devices.stored_config.catbyname[sp_value].fieldbyname['provider'] : '';
+ showhidefields(tmp_prov, 1);
break;
}
}
More information about the asterisk-gui-commits
mailing list