pari: branch asterisknow r2199 - /branches/asterisknow/config/digital.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Fri Jan 25 16:05:59 CST 2008
Author: pari
Date: Fri Jan 25 16:05:59 2008
New Revision: 2199
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2199
Log:
Fix for BE-336,
Issue: Span numbering can confuse the user
Using 'devicetype' and 'name' from ztscan output instead of 'description'
So each span will now be presented as 'card x port y (span_z)'
instead of 'card x span y (span z)'.
Modified:
branches/asterisknow/config/digital.html
Modified: branches/asterisknow/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/digital.html?view=diff&rev=2199&r1=2198&r2=2199
==============================================================================
--- branches/asterisknow/config/digital.html (original)
+++ branches/asterisknow/config/digital.html Fri Jan 25 16:05:59 2008
@@ -329,9 +329,14 @@
newRow["span_value"] = span;
var newCell0 = newRow.insertCell(0);
- newCell0.innerHTML = SPANS[span]['description'] + " (span "+ span +") ";
- newCell0.align = "center";
-
+ (function(){
+ var u = SPANS[span]['name'].split('/'); // Ex: name=TE4/2/1 where 2 is card number and 1 is the span number on that card
+ var w = SPANS[span]['devicetype'] ; // Ex: 'Wildcard TE410P/TE405P (1st Gen)'
+ var v = w + ', Card ' + String(Number(u[1]) + 1) + ' - Port ' + u[2] + " (span_" + span + ") " ;
+ newCell0.innerHTML = v ; // Ex: 'Wildcard TE410P/TE405P (1st Gen), Card 3 - Port 1, (span_3)'
+ newCell0.align = "center";
+ })();
+
var newCell1 = newRow.insertCell(1);
newCell1.innerHTML = SPANS[span]['alarms'];
newCell1.align = "center";
More information about the asterisk-gui-commits
mailing list