bkruse: branch 1.4 r1500 - /branches/1.4/config/digital.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Aug 30 22:35:07 CDT 2007


Author: bkruse
Date: Thu Aug 30 22:35:07 2007
New Revision: 1500

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1500
Log:
More changes for digital, getting closer!
About to integrate the event system for 
doing onclicks/dropdown menus/ save changes
etc.

Modified:
    branches/1.4/config/digital.html

Modified: branches/1.4/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/branches/1.4/config/digital.html?view=diff&rev=1500&r1=1499&r2=1500
==============================================================================
--- branches/1.4/config/digital.html (original)
+++ branches/1.4/config/digital.html Thu Aug 30 22:35:07 2007
@@ -175,6 +175,10 @@
 	gui_alert("This is a place holder, if you see this its probably because you need to run ztcfg, and running it is not in this page yet.");
 }
 
+function option_clicked(a) {
+	/* place holder for the option clicked callback for the event. */
+	return true;
+}
 function digitalparse(n) { 
 
 	var l, h;
@@ -218,7 +222,6 @@
 				if(fieldnames[i] == 'lbo' && n[l][fieldnames[i]] == "NODEF") {
 					old_zap = 1;	
 					td.appendChild(document.createTextNode("N/A"));
-					td.tip="en,digital,2";
 					tr.appendChild(td);	
 					continue;
 				}
@@ -226,7 +229,6 @@
 					if(n[l][fieldnames[i]] == "NODEF") {
 						old_zap = 1;	
 						td.appendChild(document.createTextNode("N/A"));
-						td.tip="en,digital,1";
 						tr.appendChild(td);	
 						continue;
 					}
@@ -248,6 +250,7 @@
 					}
 				}
 				td.appendChild(document.createTextNode(n[l][fieldnames[i]]));
+				td.setAttribute("id", l + '-' + fieldnames[i]);
 				tr.appendChild(td);	
 			}
 			box.appendChild(tr);	
@@ -258,6 +261,8 @@
 		parent._$('tooltip').innerHTML = "<B>Framing/Coding/Line Build Out:</B><br>To see this requires rev: 2986 of the 1.4 branch of zaptel.";
 	}
 
+	add_events_all(); /* add out event listeners for onclick to change them. */
+	//ASTGUI.events.add( _$(l + '-' + fieldnames[i]), 'click', option_clicked);
 	_$('tablecontainer').style.display="";
 	_$('tablecontainer').style.visibility="";
 
@@ -266,6 +271,9 @@
 	return true;
 }
 
+function add_events_all() {
+	/* get all elements by type span-field eg 1-fac then add event for click */
+}
 function update_sysinfo(){
 	parent.astmanEngine.run_tool(asterisk_guiSysInfo , onSuccess = function() {
 			_$('status_message').style.display='none';




More information about the asterisk-gui-commits mailing list