rbrindley: branch 2.0 r4851 - in /branches/2.0/config: ./ js/
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Fri Jun 12 06:09:08 CDT 2009
Author: rbrindley
Date: Fri Jun 12 06:09:04 2009
New Revision: 4851
URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4851
Log:
- only show VPM settings if a vpm is attached
Modified:
branches/2.0/config/hardware_dahdi.html
branches/2.0/config/js/hardware_dahdi.js
Modified: branches/2.0/config/hardware_dahdi.html
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/hardware_dahdi.html?view=diff&rev=4851&r1=4850&r2=4851
==============================================================================
--- branches/2.0/config/hardware_dahdi.html (original)
+++ branches/2.0/config/hardware_dahdi.html Fri Jun 12 06:09:04 2009
@@ -101,7 +101,12 @@
}
.advanced > div > input, .advanced > div > select {
+ margin: 2px 0 3px 0;
text-align: left;
+ }
+
+ #vpmsettings {
+ display: none;
}
.pageheading{
@@ -351,9 +356,9 @@
<span>Neon MWI voltage Level:</span><input id="neonmwi_level" size=2>
<span>Neon MWI off Limit (ms):</span><input id="neonmwi_offlimit" size=4>
</div>
- <div>
- <span>VPM Settings:</span>
- </div>
+ </div>
+ <div id="vpmsettings" class="advanced">
+ <div class="pageheading">VPM Settings</div>
<div>
<span>Echo Cancellation NLP Type <img src="images/tooltip_info.gif" tip="en,opermode_settings,8" class='tooltipinfo'> :</span>
<select id="vpmnlptype">
Modified: branches/2.0/config/js/hardware_dahdi.js
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/js/hardware_dahdi.js?view=diff&rev=4851&r1=4850&r2=4851
==============================================================================
--- branches/2.0/config/js/hardware_dahdi.js (original)
+++ branches/2.0/config/js/hardware_dahdi.js Fri Jun 12 06:09:04 2009
@@ -431,6 +431,10 @@
var n = config2json({ configFile_output: ztsc, usf : 1 });
for( var l in n ){ if(n.hasOwnProperty(l)){
+ if (n[l]['devicetype'].contains('VPMADT032')) {
+ $('#vpmsettings').show();
+ }
+
if(n[l]['type'] == 'analog'){
DETECTEDHARDWARE[ n[l]['location'] ] = {};
DETECTEDHARDWARE[ n[l]['location'] ]['device'] = n[l]['devicetype'];
More information about the asterisk-gui-commits
mailing list