pari: branch appliance r229 - /branches/appliance/config/setup/

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Jan 10 15:58:24 MST 2007


Author: pari
Date: Wed Jan 10 16:58:23 2007
New Revision: 229

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=229
Log:
issue 0008770 - Checking Length of Voicemail Extension during setup

Modified:
    branches/appliance/config/setup/3.html
    branches/appliance/config/setup/6.html
    branches/appliance/config/setup/install.html

Modified: branches/appliance/config/setup/3.html
URL: http://svn.digium.com/view/asterisk-gui/branches/appliance/config/setup/3.html?view=diff&rev=229&r1=228&r2=229
==============================================================================
--- branches/appliance/config/setup/3.html (original)
+++ branches/appliance/config/setup/3.html Wed Jan 10 16:58:23 2007
@@ -105,9 +105,13 @@
 		}
 }
 
+function store_extlength(){
+	parent.localextenlength = $('localextenlength').value ;
+}
+
 //-->
 </SCRIPT>
-<BODY bgcolor="#FFFFFF" onload="localinit()" topmargin=0 leftmargin=0>
+<BODY bgcolor="#FFFFFF" onload="localinit()" topmargin=0 leftmargin=0  onunload="store_extlength()">
 <table width="100%" height="100%" border=0 cellpadding=0 cellspacing=0>
 	<tr><td width="190" valign=top align=left>
 					<div id="menu">

Modified: branches/appliance/config/setup/6.html
URL: http://svn.digium.com/view/asterisk-gui/branches/appliance/config/setup/6.html?view=diff&rev=229&r1=228&r2=229
==============================================================================
--- branches/appliance/config/setup/6.html (original)
+++ branches/appliance/config/setup/6.html Wed Jan 10 16:58:23 2007
@@ -26,6 +26,11 @@
 function localinit(){
 		//parent.$('next').disabled = true;
 		parent.$('next').onclick = function(){	 
+					if( parent.localextenlength != $('name').value.length ){
+						$('name').focus();
+						alert("The Extension must be " + parent.localextenlength + " digits long" );
+						return false;
+					}
 					if( !$('save').disabled ){
 							go = nextpage;
 							$('save').click();

Modified: branches/appliance/config/setup/install.html
URL: http://svn.digium.com/view/asterisk-gui/branches/appliance/config/setup/install.html?view=diff&rev=229&r1=228&r2=229
==============================================================================
--- branches/appliance/config/setup/install.html (original)
+++ branches/appliance/config/setup/install.html Wed Jan 10 16:58:23 2007
@@ -34,6 +34,7 @@
 var numberofsteps = 7;
 var loggedon = 0;
 var eventeater = {};
+var localextenlength;
 
 function localinit(){
 



More information about the asterisk-gui-commits mailing list