bkruse: branch 1.4 r1326 - /branches/1.4/config/cdr.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Mon Aug 13 15:51:00 CDT 2007
Author: bkruse
Date: Mon Aug 13 15:50:59 2007
New Revision: 1326
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1326
Log:
Fixes for the CDR viewer so that NO cdr records from the GUI system calls are placed inside the viewer (eg no calls that originate from the context asterisk_guitools
Modified:
branches/1.4/config/cdr.html
Modified: branches/1.4/config/cdr.html
URL: http://svn.digium.com/view/asterisk-gui/branches/1.4/config/cdr.html?view=diff&rev=1326&r1=1325&r2=1326
==============================================================================
--- branches/1.4/config/cdr.html (original)
+++ branches/1.4/config/cdr.html Mon Aug 13 15:50:59 2007
@@ -123,13 +123,23 @@
var r = records[i+offset];
for(var j=-1;j<r.length;j++) {
+
+ if(r[(j + 4)])
+ var dest_context = (r[j + 4].toString().replace(/^[\"]{1}/, "").replace(/[\"]{1}$/, "")) ? r[j + 4].toString().replace(/^[\"]{1}/, "").replace(/[\"]{1}$/, "") : 'none';
+ if(dest_context == "asterisk_guitools") {
+ j += fields.length-3;
+ /* go to next cdr record, which is exact 21 csvs away, so count the csv field names, and subtract 3, since we only added 4, and started with -1 */
+ continue;
+ }
var td = document.createElement("td");
- if (j < 0)
+ if (j < 0) {
var l = offset+i+1;
- else
+ } else {
var l = r[j].toString().replace(/^[\"]{1}/, "").replace(/[\"]{1}$/, "");
+ }
td.appendChild(document.createTextNode(l));
tr.appendChild(td);
+
}
d.appendChild(tr);
More information about the asterisk-gui-commits
mailing list