pari: trunk r357 - in /trunk/config/setup: 3.html 6.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Sat Feb 17 14:16:56 MST 2007


Author: pari
Date: Sat Feb 17 15:16:55 2007
New Revision: 357

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=357
Log:
setting default values that make more sense

Modified:
    trunk/config/setup/3.html
    trunk/config/setup/6.html

Modified: trunk/config/setup/3.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/3.html?view=diff&rev=357&r1=356&r2=357
==============================================================================
--- trunk/config/setup/3.html (original)
+++ trunk/config/setup/3.html Sat Feb 17 15:16:55 2007
@@ -110,6 +110,7 @@
 
 function store_extlength(){
 	parent.localextenlength = $('localextenlength').value ;
+	parent.userbase = $('userbase').value ;
 }
 
 function update_spae(){
@@ -149,9 +150,9 @@
 					<select id="devices" style="display:none"></select> <input type=button id="save" value="Submit" style="display:none">
 					<div class="heading">Step 2 of <script>document.write(parent.numberofsteps);</script>&nbsp;&nbsp;- Local Extension Settings</div>
 					<p class="subheading">	Local Extensions are <select id="localextenlength">
-																	<option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option></select> digits long&nbsp;
+																	<option value="2">2</option><option value="3">3</option><option value="4" selected>4</option><option value="5">5</option></select> digits long&nbsp;
 					</p>
-					<p class="subheading">Starting point of Allocation of extensions : <input type=text id="userbase" size=5>	</p>
+					<p class="subheading">Starting point of Allocation of extensions : <input type=text id="userbase" size=5 dfalt="6000">	</p>
 					<p class="subheading"><input type=checkbox id="allow_aliasextns"> Allow analog phones to be assigned to multiple extensions</p>
 			<!--  this page -->
 			</td>

Modified: trunk/config/setup/6.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/6.html?view=diff&rev=357&r1=356&r2=357
==============================================================================
--- trunk/config/setup/6.html (original)
+++ trunk/config/setup/6.html Sat Feb 17 15:16:55 2007
@@ -180,7 +180,22 @@
 	$('name').onkeydown = newexten;
 	$('name').disabled = false;
 	if (whichexten.length ==0 ){
-		alert("Looks like a default Voicemail Extension is not yet configured \n\n Please set an \'Extension for Checking messages\'");
+		//alert("Looks like a default Voicemail Extension is not yet configured \n\n Please set an \'Extension for Checking messages\'");
+			switch (parent.localextenlength){
+			case "2":
+				$('name').value = parent.userbase.charAt(0) + "5";
+				break;
+			case "3":
+				$('name').value = parent.userbase.charAt(0) + "50";
+				break;
+			case "4":
+				$('name').value = parent.userbase.charAt(0) + "500";
+				break;
+			case "5":
+				$('name').value = parent.userbase.charAt(0) + "5000";
+				break;
+			default : $('name').value = "8500";
+			}
 	}else{
 					if( parent.localextenlength != $('name').value.length ){
 							if(	parent.localextenlength < $('name').value.length ){
@@ -241,7 +256,7 @@
 												<option value='10'>10</option>
 												<option value='25'>25</option>
 												<option value='100'>100</option>
-												<option value='250'>250</option>
+												<option value='250' selected>250</option>
 												<option value='500'>500</option>
 												<option value='1000'>1000</option>
 												</select>
@@ -252,13 +267,13 @@
 												<option value='60'>1 minute</option>
 												<option value='120'>2 minutes</option>
 												<option value='300'>5 minutes</option>
-												<option value='900'>15 minutes</option>
+												<option value='900' selected>15 minutes</option>
 												<option value='1800'>30 minutes</option>
 												<option value='0'>Unlimited</option>
 												</select>
 							</td>
 					</tr>
-					<tr><td>Max&nbsp;greeting&nbsp;(seconds)</td><td>&nbsp;<input size=4 id='maxgreet' pattern='^\d*$' class="input8"></td></tr>
+					<tr><td>Max&nbsp;greeting&nbsp;(seconds)</td><td>&nbsp;<input size=4 id='maxgreet' pattern='^\d*$' class="input8" dfalt=60></td></tr>
 					<tr><td colspan='2' align='center'><div style="height:15px" id='status'></div></td></tr>
 			</table>					
 			<div style="display:none"><input type='button' id='save' value='Save'>&nbsp;<input type='button' id='cancel' value='Cancel'></div>



More information about the asterisk-gui-commits mailing list