pari: trunk r264 - /trunk/config/setup/7.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Tue Jan 16 21:10:24 MST 2007
Author: pari
Date: Tue Jan 16 22:10:24 2007
New Revision: 264
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=264
Log:
Bug Fix: During setup wizard - User Extensions page is not checking whether an entered user extension has been assinged to a Voicemail, voicemenu, queues or conferencing
Modified:
trunk/config/setup/7.html
Modified: trunk/config/setup/7.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/7.html?view=diff&rev=264&r1=263&r2=264
==============================================================================
--- trunk/config/setup/7.html (original)
+++ trunk/config/setup/7.html Tue Jan 16 22:10:24 2007
@@ -83,6 +83,15 @@
$('fullname').focus();
return false;
}
+ // check whether the extension entered matches with any of the - voicemail, queue, voicemenu, conference extensions
+ 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;
}
@@ -118,8 +127,20 @@
}
numcallbacks.loaded = function() {
+ parent.astmanEngine.config2list("extensions.conf", $('extensions'), new Array(), extencallbacks);
+}
+
+extencallbacks.format = function(t, x) {
+ if ((t.name != specialcontext))
+ return null;
+ return format_extension($('extensions'), t, x);
+}
+extencallbacks.loaded = function() {
parent.astmanEngine.config2list("users.conf", $('devices'), widgets, callbacks);
}
+extencallbacks.eachline = true;
+
+
function localinit(){
//parent.$('next').disabled = true;
More information about the asterisk-gui-commits
mailing list