pari: trunk r166 - /trunk/config/localexts.html
    asterisk-gui-commits at lists.digium.com 
    asterisk-gui-commits at lists.digium.com
       
    Mon Dec 11 15:51:34 MST 2006
    
    
  
Author: pari
Date: Mon Dec 11 16:51:33 2006
New Revision: 166
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=166
Log:
Starting Point of Allocation of extensions should confirm to extension length
Modified:
    trunk/config/localexts.html
Modified: trunk/config/localexts.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/localexts.html?view=diff&rev=166&r1=165&r2=166
==============================================================================
--- trunk/config/localexts.html (original)
+++ trunk/config/localexts.html Mon Dec 11 16:51:33 2006
@@ -43,6 +43,16 @@
 usercallbacks.savechanges = function(){
 	//
 }
+
+usercallbacks.beforeSaving= function(){
+		if(	$('localextenlength').value != $('userbase').value.length ){
+			alert("'length of Local Extensions' does not match \n the 'length of the Starting point of Allocation'");
+			return false;
+		}
+
+	return true;
+}
+
 
 usercallbacks.loaded = function(){
 		$('devices').selectitem(0);
    
    
More information about the asterisk-gui-commits
mailing list