pari: trunk r228 - in /trunk/config/setup: 3.html 6.html
install.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Wed Jan 10 15:56:06 MST 2007
Author: pari
Date: Wed Jan 10 16:56:05 2007
New Revision: 228
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=228
Log:
issue 0008770 - Checking Length of Voicemail Extension during setup
Modified:
trunk/config/setup/3.html
trunk/config/setup/6.html
trunk/config/setup/install.html
Modified: trunk/config/setup/3.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/3.html?view=diff&rev=228&r1=227&r2=228
==============================================================================
--- trunk/config/setup/3.html (original)
+++ trunk/config/setup/3.html Wed Jan 10 16:56:05 2007
@@ -105,9 +105,14 @@
}
}
+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: trunk/config/setup/6.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/6.html?view=diff&rev=228&r1=227&r2=228
==============================================================================
--- trunk/config/setup/6.html (original)
+++ trunk/config/setup/6.html Wed Jan 10 16:56:05 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: trunk/config/setup/install.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/install.html?view=diff&rev=228&r1=227&r2=228
==============================================================================
--- trunk/config/setup/install.html (original)
+++ trunk/config/setup/install.html Wed Jan 10 16:56:05 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