pari: branch asterisknow r2134 - /branches/asterisknow/config/digital.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Fri Jan 11 20:40:47 CST 2008


Author: pari
Date: Fri Jan 11 20:40:47 2008
New Revision: 2134

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2134
Log:
Add a Header Row for each digital Card listed

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=2134&r1=2133&r2=2134
==============================================================================
--- branches/asterisknow/config/digital.html (original)
+++ branches/asterisknow/config/digital.html Fri Jan 11 20:40:47 2008
@@ -311,6 +311,16 @@
 	};
 
 	var addrow_totable = function(span){
+		if( LAST_LOCATION != SPANS[span]['location'] ){
+			var newRow = tbl.insertRow(-1);
+			var ntd = document.createElement('TD');
+			ntd.setAttribute('colspan',6);
+			ntd.style.backgroundColor='#B0B9D0';
+			ntd.align = 'center';
+			ntd.innerHTML = '<B>' + SPANS[span]['location'] + ' --> ' + SPANS[span]['devicetype'] + '</B>';
+			newRow.appendChild(ntd);
+		}
+
 		var sno = tbl.rows.length + 1;
 		var newRow = tbl.insertRow(-1);
 		newRow.className = ((tbl.rows.length)%2==1)?"odd":"even";
@@ -341,7 +351,6 @@
 
 		var newCell5 = newRow.insertCell(5);
 
-
 		newCell5.innerHTML = "<span class=\"downbutton\" id='" + "span_" + span + "'  onclick=\"editSPAN( '"+ span + "');\">Edit</span>" ;
 
 		//newCell5.innerHTML = "<span class=\"downmenubutton\" id='" + "span_" + span + "'  onclick=\"show_downmenu( '"+ span + "');\">Options&nbsp;&nbsp;<img src=images/1.gif></span>" ;
@@ -349,11 +358,13 @@
 
 		newCell5.style.width = 90;
 		newCell5.align = "center";
+		LAST_LOCATION = SPANS[span]['location'] ;
 	};
 
 	ASTGUI.domActions.clear_table(tbl);
 	add_fRow();
 	var foo_spans =0;
+	var LAST_LOCATION = '';
 	for( var k in SPANS ){ if( SPANS.hasOwnProperty(k) ){ foo_spans++; addrow_totable(k); }}
 	if(!foo_spans){
 		ASTGUI.domActions.clear_table(tbl);




More information about the asterisk-gui-commits mailing list