pari: trunk r928 - /trunk/config/timerules.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Mon May 14 20:36:48 MST 2007


Author: pari
Date: Mon May 14 22:36:48 2007
New Revision: 928

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=928
Log:
message when no time rules are found

Modified:
    trunk/config/timerules.html

Modified: trunk/config/timerules.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/timerules.html?view=diff&rev=928&r1=927&r2=928
==============================================================================
--- trunk/config/timerules.html (original)
+++ trunk/config/timerules.html Mon May 14 22:36:48 2007
@@ -39,6 +39,16 @@
 	for( t in timebasedrules ){
 		if(timebasedrules.hasOwnProperty(t)){ addrow_totable( timebasedrules[t],t ); }
 	}
+
+	var u = _$('tbrulesTable');
+	if( u.rows.length == 0 ){
+		_$('table_one').style.display="none";
+		var newRow = u.insertRow(-1);
+		var newCell0 = newRow.insertCell(0);
+		newCell0.align = "center";
+		newCell0.innerHTML = "<BR><I> No Previous Time Rules found !!</I> <BR><BR>" +
+			"Please click on the 'New Time Rule' button<BR> to define a New Time Based Rule<BR><BR>" ;
+	}
 }
 
 function addrow_totable(k,l){



More information about the asterisk-gui-commits mailing list