pari: branch 2.0 r3855 - /branches/2.0/config/welcome.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Mon Sep 22 16:50:49 CDT 2008
Author: pari
Date: Mon Sep 22 16:50:49 2008
New Revision: 3855
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=3855
Log:
more fixes to Conference rooms status
Modified:
branches/2.0/config/welcome.html
Modified: branches/2.0/config/welcome.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/welcome.html?view=diff&rev=3855&r1=3854&r2=3855
==============================================================================
--- branches/2.0/config/welcome.html (original)
+++ branches/2.0/config/welcome.html Mon Sep 22 16:50:49 2008
@@ -370,9 +370,10 @@
while( meetme_status.length ){
var this_line = meetme_status[0];
meetme_status.removeFirst();
- if( this_line.beginsWith('Conf Num') || this_line.beginsWith('* Total number') ) continue;
+ this_line = this_line.trim();
+ if( !this_line || this_line.beginsWith('Conf Num') || this_line.beginsWith('* Total number') ) {continue;}
var tmp_vars = this_line.split(/\s+/); // ['6302','0001','N/A','00:00:09', 'Static' ]
- active_conferences[ tmp_vars[0] ] = String( Number(tmp_vars[1]) ) ;
+ active_conferences[ tmp_vars[0] ] = tmp_vars[1] ;
}
}
@@ -384,7 +385,7 @@
addCell( newRow , { html: '<b>Conference Room</b>' });
if( active_conferences.hasOwnProperty(l) ){
- addCell( newRow , { html: '<font color=red>' + active_conferences.l + ' Users</font>' });
+ addCell( newRow , { html: '<font color=red>' + Number(active_conferences[l]) + ' Users</font>' });
}else{
addCell( newRow , { html: '<font color=green>Not in use</font>' });
}
More information about the asterisk-gui-commits
mailing list