pari: branch asterisknow r2120 - /branches/asterisknow/config/queues.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Jan 10 11:18:44 CST 2008


Author: pari
Date: Thu Jan 10 11:18:43 2008
New Revision: 2120

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2120
Log:
assing a default value for localexten length is one is not defined in users.conf

Modified:
    branches/asterisknow/config/queues.html

Modified: branches/asterisknow/config/queues.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/queues.html?view=diff&rev=2120&r1=2119&r2=2120
==============================================================================
--- branches/asterisknow/config/queues.html (original)
+++ branches/asterisknow/config/queues.html Thu Jan 10 11:18:43 2008
@@ -95,6 +95,7 @@
 		$('fullname').focus();
 		return;
 	}
+	if(isNaN(localextenlength)){localextenlength = 4;}
 	if( localextenlength !=0 && (localextenlength != $('name').value.length) ) {
 		gui_alert("Sorry, An Extension must be "+ localextenlength  + " digits !");
 		$('name').focus();




More information about the asterisk-gui-commits mailing list