pari: trunk r265 - in /trunk/config: meetme.html queues.html
users.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Tue Jan 16 21:15:19 MST 2007
Author: pari
Date: Tue Jan 16 22:15:19 2007
New Revision: 265
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=265
Log:
Bug fix: check for duplicate extensions before saving
Modified:
trunk/config/meetme.html
trunk/config/queues.html
trunk/config/users.html
Modified: trunk/config/meetme.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/meetme.html?view=diff&rev=265&r1=264&r2=265
==============================================================================
--- trunk/config/meetme.html (original)
+++ trunk/config/meetme.html Tue Jan 16 22:15:19 2007
@@ -200,6 +200,15 @@
if (!check_patternonfields( ['name', 'pin' , 'pinadmin', 'room'] ) ){
return false;
}
+
+ for(var k=0; k<$('extensions').length; k++ ){
+ var tmp = $('extensions').options[k].innerHTML.split(' -- ');
+ if( tmp[0] == $('name').value ){
+ alert("Sorry, an entry named " + $('name').value + " already exists!");
+ return false;
+ }
+ }
+
return true;
}
callbacks.identifier = "extension";
Modified: trunk/config/queues.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/queues.html?view=diff&rev=265&r1=264&r2=265
==============================================================================
--- trunk/config/queues.html (original)
+++ trunk/config/queues.html Tue Jan 16 22:15:19 2007
@@ -156,8 +156,8 @@
return;
}
- for(k=0; k<$('queues').length; k++ ){
- tmp = $('queues').options[k].innerHTML.split(' -- ');
+ for(var k=0; k<$('queues').length; k++ ){
+ var tmp = $('queues').options[k].innerHTML.split(' -- ');
if( tmp[0] == $('name').value ){
alert("Sorry, an entry named " + $('name').value + " already exists!");
return;
Modified: trunk/config/users.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/users.html?view=diff&rev=265&r1=264&r2=265
==============================================================================
--- trunk/config/users.html (original)
+++ trunk/config/users.html Tue Jan 16 22:15:19 2007
@@ -136,6 +136,14 @@
alert("This Analog Phone has already been assigned to another user extension.\n Please select a different Phone");
return false;
}
+ }
+
+ for(var k=0; k<$('devices').length; k++ ){
+ var tmp = $('devices').options[k].innerHTML.split(' -- ');
+ if( tmp[0] == $('name').value ){
+ alert("Sorry, an entry named " + $('name').value + " already exists!");
+ return false;
+ }
}
return true;
More information about the asterisk-gui-commits
mailing list