pari: trunk r431 - in /trunk/config: ./ scripts/ setup/
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Wed Mar 14 16:11:49 MST 2007
Author: pari
Date: Wed Mar 14 18:11:48 2007
New Revision: 431
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=431
Log:
***** Major Change ***** Manual Reloading of asterisk - after all changes are done in the gui, go to home panel and click the 'Reload Config' button , I will add some tool tips and a couple of notifications so that this changes will be displayed prominently to the existing users
Modified:
trunk/config/home.html
trunk/config/homeapp.html
trunk/config/incoming.html
trunk/config/localexts.html
trunk/config/meetme.html
trunk/config/menus.html
trunk/config/numberplan.html
trunk/config/options.html
trunk/config/queues.html
trunk/config/record.html
trunk/config/scripts/astman.js
trunk/config/scripts/tooltip.js
trunk/config/setup/1.html
trunk/config/setup/3.html
trunk/config/setup/4.html
trunk/config/setup/5.html
trunk/config/setup/8.html
trunk/config/trunks.html
trunk/config/users.html
Modified: trunk/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/home.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/home.html (original)
+++ trunk/config/home.html Wed Mar 14 18:11:48 2007
@@ -33,11 +33,13 @@
$('username').disabled = 1;
$('secret').disabled = 1;
$('logoff').disabled = 0;
+ $('reloadconfig').disabled = 0;
$('login').disabled = 1;
} else {
$('username').disabled = 0;
$('secret').disabled = 0;
$('logoff').disabled = 1;
+ $('reloadconfig').disabled = 1;
$('login').disabled = 0;
try{ $('username').focus(); }catch(err){ }
}
@@ -195,6 +197,17 @@
}
+function reloadConfig(){
+ var opt = {
+ method: 'get',
+ asynchronous: true,
+ onSuccess: function(t) { parent.gui_alert("Reloaded"); } ,
+ onFailure: function(t) { parent.gui_alert("Config Error: " + t.status + ": " + t.statusText); }
+ };
+ var uri = parent.build_action('renamecat', 0, "","", "", "");
+ opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ var tmp = new Ajax.Request("../../rawman", opt);
+}
</script>
<body id="foo" onload="localinit()" topmargin=0 bgcolor="EFEFEF">
<div class="mainscreenTitleBar">
@@ -215,6 +228,8 @@
</td></tr>
<tr><td align='center' colspan='2'>
+ <input type="submit" id="reloadconfig" value="Reload Config" disabled=1 onClick="reloadConfig()">
+
<input type="submit" id="login" value="Login" disabled=1 onClick="doLogin()" class="input">
<input type="submit" id="logoff" value="Logoff" disabled=1 onClick="doLogoff()" class="input">
Modified: trunk/config/homeapp.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/homeapp.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/homeapp.html (original)
+++ trunk/config/homeapp.html Wed Mar 14 18:11:48 2007
@@ -26,8 +26,7 @@
<script>
var demo = new Object;
var localloggedon = -1;
- function updateButtons()
- {
+ function updateButtons() {
if (parent.loggedon) {
$('username').disabled = 1;
$('secret').disabled = 1;
Modified: trunk/config/incoming.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/incoming.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/incoming.html (original)
+++ trunk/config/incoming.html Wed Mar 14 18:11:48 2007
@@ -322,7 +322,7 @@
}
};
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request("../../rawman", opt);
//
}
@@ -393,7 +393,7 @@
gui_alert("Config Error: " + t.status + ": " + t.statusText);
}
};
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request("../../rawman", opt);
}
@@ -452,7 +452,7 @@
var tmp2_match = "s," + d + "," + c ;
uri += build_action('delete',1,b,"exten","", tmp2_match);
}
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request("../../rawman", opt);
}
Modified: trunk/config/localexts.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/localexts.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/localexts.html (original)
+++ trunk/config/localexts.html Wed Mar 14 18:11:48 2007
@@ -70,7 +70,7 @@
gui_alert("Config Error: " + t.status + ": " + t.statusText);
}
};
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("users.conf") + "&dstfilename=" + encodeURIComponent("users.conf") + "&Action-000000=update&Cat-000000=general&Var-000000=localextenlength&Value-000000=4"; ;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("users.conf") + "&dstfilename=" + encodeURIComponent("users.conf") + "&Action-000000=update&Cat-000000=general&Var-000000=localextenlength&Value-000000=4"; ;
var tmp = new Ajax.Request("../../rawman", opt);
return;
}
Modified: trunk/config/meetme.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/meetme.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/meetme.html (original)
+++ trunk/config/meetme.html Wed Mar 14 18:11:48 2007
@@ -292,7 +292,7 @@
$('save').disabled = true; $('cancel').disabled = true;
}
};
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("meetme.conf") + "&dstfilename=" + encodeURIComponent("meetme.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("meetme.conf") + "&dstfilename=" + encodeURIComponent("meetme.conf") + uri;
var tmp = new Ajax.Request("../../rawman", opt);
return true;
}
@@ -310,7 +310,7 @@
f.stored_config.catbyname.rooms.fields.splice(r ,1);
}
};
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("meetme.conf") + "&dstfilename=" + encodeURIComponent("meetme.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("meetme.conf") + "&dstfilename=" + encodeURIComponent("meetme.conf") + uri;
var tmp = new Ajax.Request("../../rawman", opt);
break;
}
Modified: trunk/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/menus.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/menus.html (original)
+++ trunk/config/menus.html Wed Mar 14 18:11:48 2007
@@ -197,7 +197,7 @@
};
var existing_alias_string = voicemenusdata[deleted_voicmenu].alias_exten + ",1,Goto(" + deleted_voicmenu + "|s|1)" ;
var uri = build_action('delete', 0, specialcontext ,"exten", "", existing_alias_string );
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request("../../rawman", opt);
}
delete voicemenusdata[deleted_voicmenu];
@@ -349,7 +349,7 @@
}
uri += build_action('append', 0, $('vmenus').value,"exten", action_string );
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
tmp = new Ajax.Request('../../rawman', opt);
}
@@ -510,7 +510,7 @@
uri += build_action('append', p, current_vmenu,"exten", buildstring[keys[k]]); p = p+1;
}
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
// send the request
tmp = new Ajax.Request('../../rawman', opt);
}
@@ -615,7 +615,7 @@
// ok find $('steps').options[a].value in extensions.conf and replace it with tmp1.join() and also replace $('steps').options[b].value with tmp2.join()
uri += build_action('update', 0, $('vmenus').value ,"exten",tmp1.join(), $('steps').options[a].value);
uri += build_action('update', 1, $('vmenus').value ,"exten",tmp2.join(), $('steps').options[b].value);
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
tmp = new Ajax.Request('../../rawman', opt);
}
@@ -648,7 +648,7 @@
};
var uri = "";
uri += build_action('delete', 0, $('vmenus').value,"exten", "", $('steps').value);
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
tmp = new Ajax.Request('../../rawman', opt);
}
Modified: trunk/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/numberplan.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/numberplan.html (original)
+++ trunk/config/numberplan.html Wed Mar 14 18:11:48 2007
@@ -139,7 +139,7 @@
gui_alert("Config Error: " + t.status + ": " + t.statusText);
}
};
- opt.parameters= "action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
$('userscontent').style.display="none";
$('bg_transparent').style.display ='none';
$('status_message').style.display="block";
@@ -391,7 +391,7 @@
gui_alert("Config Error: " + t.status + ": " + t.statusText);
}
};
- opt.parameters= "action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
$('userscontent').style.display="none";
$('bg_transparent').style.display ='none';
$('status_message').style.display="block";
@@ -610,7 +610,7 @@
gui_alert("Config Error: " + t.status + ": " + t.statusText);
}
};
- opt.parameters= "action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request("../../rawman", opt);
}
Modified: trunk/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/options.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/options.html (original)
+++ trunk/config/options.html Wed Mar 14 18:11:48 2007
@@ -71,7 +71,7 @@
gui_alert("Config Error: " + t.status + ": " + t.statusText);
}
};
- opt.parameters ="action=updateconfig&reload=yes&srcfilename=manager.conf&dstfilename=manager.conf&Action-000000=update&Cat-000000=general&Var-000000=httptimeout&Value-000000="+ encodeURIComponent($('httptimeout').value);
+ opt.parameters ="action=updateconfig&srcfilename=manager.conf&dstfilename=manager.conf&Action-000000=update&Cat-000000=general&Var-000000=httptimeout&Value-000000="+ encodeURIComponent($('httptimeout').value);
var tmp = new Ajax.Request("../../rawman", opt);
return;
}
@@ -97,7 +97,7 @@
gui_alert("Config Error: " + t.status + ": " + t.statusText);
}
};
- opt.parameters ="action=updateconfig&reload=yes&srcfilename=http.conf&dstfilename=http.conf&Action-000000=update&Cat-000000=general&Var-000000=bindport&Value-000000="+ encodeURIComponent($('bindport').value) + "&Action-000001=update&Cat-000001=general&Var-000001=bindaddr&Value-000001=" + encodeURIComponent($('bindaddr').value );
+ opt.parameters ="action=updateconfig&srcfilename=http.conf&dstfilename=http.conf&Action-000000=update&Cat-000000=general&Var-000000=bindport&Value-000000="+ encodeURIComponent($('bindport').value) + "&Action-000001=update&Cat-000001=general&Var-000001=bindaddr&Value-000001=" + encodeURIComponent($('bindaddr').value );
var tmp = new Ajax.Request("../../rawman", opt);
}
@@ -154,7 +154,7 @@
gui_alert("Config Error: " + t.status + ": " + t.statusText);
}
};
- opt.parameters ="action=updateconfig&reload=yes&srcfilename=manager.conf&dstfilename=manager.conf&Action-000000=update&Cat-000000=" + current_username + "&Var-000000=secret&Value-000000="+ encodeURIComponent($('newpass').value );
+ opt.parameters ="action=updateconfig&srcfilename=manager.conf&dstfilename=manager.conf&Action-000000=update&Cat-000000=" + current_username + "&Var-000000=secret&Value-000000="+ encodeURIComponent($('newpass').value );
var tmp = new Ajax.Request("../../rawman", opt);
return;
}
Modified: trunk/config/queues.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/queues.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/queues.html (original)
+++ trunk/config/queues.html Wed Mar 14 18:11:48 2007
@@ -73,7 +73,7 @@
}
};
uri0 = build_action('update', 0, specialcontext ,'exten', b+',1,Queue(${EXTEN})', a+',1,Queue(${EXTEN})' );
- opt0.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri0;
+ opt0.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri0;
tmp0 = new Ajax.Request('../../rawman', opt0);
}
@@ -92,7 +92,7 @@
}
};
uri0 = build_action('append', 0, specialcontext ,'exten', a+',1,Queue(${EXTEN})');
- opt0.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri0;
+ opt0.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri0;
tmp0 = new Ajax.Request('../../rawman', opt0);
}
@@ -110,7 +110,7 @@
}
};
uri0 = build_action('delete', 0, specialcontext ,'exten', '',a+',1,Queue(${EXTEN})');
- opt0.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri0;
+ opt0.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri0;
tmp0 = new Ajax.Request('../../rawman', opt0);
}
@@ -260,7 +260,7 @@
}
}
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("queues.conf") + "&dstfilename=" + encodeURIComponent("queues.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("queues.conf") + "&dstfilename=" + encodeURIComponent("queues.conf") + uri;
tmp = new Ajax.Request('../../rawman', opt);
}
Modified: trunk/config/record.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/record.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/record.html (original)
+++ trunk/config/record.html Wed Mar 14 18:11:48 2007
@@ -125,7 +125,7 @@
};
var uri = build_action('newcat', 0, filename_torecord ,"", "");
- opt2.parameters ="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent(custom_voicemenusfile) + "&dstfilename=" + encodeURIComponent(custom_voicemenusfile) + uri;
+ opt2.parameters ="action=updateconfig&srcfilename=" + encodeURIComponent(custom_voicemenusfile) + "&dstfilename=" + encodeURIComponent(custom_voicemenusfile) + uri;
var tmp2 = new Ajax.Request("../../rawman", opt2);
}
Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Wed Mar 14 18:11:48 2007
@@ -183,7 +183,6 @@
return json_data ;
}
-
function setWindowTitle(a){
top.document.title = asterisk_guiappname + " -- " + a ;
}
@@ -229,7 +228,6 @@
if( tmp_left > 0 && tmp_left < dragdata.maxleft ){ $(dragdata.movethis).style.left = tmp_left + "px"; }
if( tmp_top > 0 && tmp_top < dragdata.maxtop ){ $(dragdata.movethis).style.top = tmp_top + "px"; }
}
-
function check_patternonfields(fields){
// for checking validity of field contents before form submitting
@@ -261,8 +259,6 @@
document.body.appendChild(h);
}
-
-
function combo_box(a, b, c ){
var combo_text = document.getElementById(a);
var combo_selectdiv = document.getElementById(b);
@@ -303,7 +299,6 @@
combo_selectdiv.style.display = "none";
}
-
function efgh(event) {
if( event.keyCode == ENTER ){
combo_text.value = combo_selectbox.value;
@@ -337,7 +332,6 @@
add_event( combo_selectbox, 'keypress' , efgh ) ;
add_event( combo_selectbox, 'click' , ijkl ) ;
-
function combobox_activate(){
var tmp_left = combo_text.offsetLeft;
var tmp_top = combo_text.offsetTop + combo_text.offsetHeight;
@@ -354,8 +348,6 @@
}
}
-
-
function InArray(search_array, searchstring ){
var i = search_array.length
if( i>0){
@@ -367,7 +359,6 @@
return false;
}
-
function objcopy(orig) {
var copy = new Object;
@@ -381,11 +372,7 @@
return copy;
};
-
-
-
-function do_compare(box, a, b)
-{
+function do_compare(box, a, b){
var ret;
if (box.callbacks.compare) {
return box.callbacks.compare(box, a,b);
@@ -394,13 +381,7 @@
return false;
}
-
-
-
-
-
-function insert_option(box, res, value, core_name)
-{
+function insert_option(box, res, value, core_name){
var z;
if (res) {
var opt_new = document.createElement('option');
@@ -426,8 +407,7 @@
}
}
-function reformat_option(box, index)
-{
+function reformat_option(box, index){
var v, tmp, res;
var cfg = box.stored_config;
@@ -444,8 +424,7 @@
}
}
-function update_option(box, index)
-{
+function update_option(box, index){
var v, tmp;
var cfg = box.stored_config;
v = box.options[index].value;
@@ -495,19 +474,6 @@
select_item(box);
}
-
-
-
-
-
-
-
-
-
-
-
-
-
function select_item(box, errmsg) {
var category;
var tmp;
@@ -565,22 +531,6 @@
return true;
};
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
function cancel_item(box) {
var tmp = box.options[box.selectedIndex].value.split(']');
if (tmp.length > 1) {
@@ -611,22 +561,6 @@
}
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
function first_free_exten(box, start) {
var x = start;
var y;
@@ -642,10 +576,6 @@
return x;
}
-
-
-
-
function action_issuccess(responseText) {
if ( responseText.indexOf("Response: Success") == -1 ){
return false;
@@ -658,7 +588,6 @@
var tmp = responseText.split("Message:");
return tmp[1];
}
-
function delete_item(box, value, noconfirm) {
var opt = {
@@ -675,7 +604,6 @@
// }else{
// alert( action_errmsg (t.responseText) );
// }
-
},
onFailure: function(t) {
gui_alert("Config Error: " + t.status + ": " + t.statusText);
@@ -724,7 +652,7 @@
box.widgets['status'].innerHTML = "<i>Deleted.</i>";
} else {
uri = build_action('delete', 0, tmp[0], subname, "", suborig);
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent(box.config_file) + "&dstfilename=" +
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent(box.config_file) + "&dstfilename=" +
encodeURIComponent(box.config_file) + uri;
tmp = new Ajax.Request(box.engine.url, opt);
}
@@ -745,7 +673,7 @@
box.widgets['status'].innerHTML = "<i>Deleted.</i>";
} else {
uri = build_action('delcat', 0, value, "", "");
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent(box.config_file) + "&dstfilename=" +
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent(box.config_file) + "&dstfilename=" +
encodeURIComponent(box.config_file) + uri;
tmp = new Ajax.Request(box.engine.url, opt);
}
@@ -769,30 +697,6 @@
select_item(box);
}
};
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
function new_item(box) {
var category = null;
@@ -842,24 +746,6 @@
}
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
function new_subitem(box) {
var name = null;
var tmp;
@@ -916,12 +802,7 @@
box.widgets['name'].value = name;
}
-
-
-
-
-function apply_uri(box, uri)
-{
+function apply_uri(box, uri){
var opt = {
method: 'get',
asynchronous: true,
@@ -945,25 +826,10 @@
};
var tmp;
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent(box.config_file) + "&dstfilename=" +
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent(box.config_file) + "&dstfilename=" +
encodeURIComponent(box.config_file) + uri;
tmp = new Ajax.Request(box.engine.url, opt);
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
function save_item(box) {
@@ -1042,7 +908,7 @@
}
} else
box.remove(box.selectedIndex);
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent(box.config_file) + "&dstfilename=" +
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent(box.config_file) + "&dstfilename=" +
encodeURIComponent(box.config_file) + uri;
temp = new Ajax.Request(box.engine.url, opt);
}
@@ -1088,7 +954,7 @@
box.remove(box.selectedIndex);
}
}
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent(box.config_file) + "&dstfilename=" +
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent(box.config_file) + "&dstfilename=" +
encodeURIComponent(box.config_file) + uri;
temp = new Ajax.Request(box.engine.url, opt);
}
@@ -1105,37 +971,7 @@
}
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-function ast_true(s)
-{
+function ast_true(s){
if ((s == 'yes') ||
(s == 'true') ||
(s == 'y') ||
@@ -1147,19 +983,7 @@
return false;
}
-
-
-
-
-
-
-
-
-
-
-
-function build_action(action, count, cat, name, value, match)
-{
+function build_action(action, count, cat, name, value, match){
var s="";
var cnt = "" + count;
while(cnt.length < 6)
@@ -1174,11 +998,7 @@
return s;
}
-
-
-
-function check_pattern(pattern, text)
-{
+function check_pattern(pattern, text){
if(typeof text != "undefined"){
if (text.search(pattern) == -1)
return false;
@@ -1187,10 +1007,6 @@
}
return true;
}
-
-
-
-
function Astman() {
@@ -1926,17 +1742,6 @@
return null;
}
-
-
-
-
-
-
-
-
-
-
-
function format_extension(box, t, x, multipriority) {
var tmp;
var exten, app, rest, args, label, priority;
@@ -1945,7 +1750,6 @@
tmp = t.fields[x].split(',');
priority = tmp[1];
-
// if it is a Voicemenu alias .. return "extension -- Voicemenu"
if ( tmp[2].match("Goto") && tmp[2].match("voicemenu-custom-" ) ){
@@ -1966,7 +1770,6 @@
}
}
//
-
if (!multipriority && (tmp[1] != '1'))
return null;
@@ -2014,11 +1817,9 @@
}
}
-
function merge_users(e, u) { // read u and add into e according to sort order
merge_extensions(e, u);
}
-
function merge_extensions(u, e) { // read e and add into u according to sort order
var t = e.options.length ;
Modified: trunk/config/scripts/tooltip.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/tooltip.js?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/scripts/tooltip.js (original)
+++ trunk/config/scripts/tooltip.js Wed Mar 14 18:11:48 2007
@@ -252,5 +252,3 @@
tooltips['sysinfo'].en[1] = "<B>ifconfig:</B> Network devices information (ifconfig)";
tooltips['sysinfo'].en[2] = "<B>Resources:</B> Disk and Memory usage information";
tooltips['sysinfo'].en[3] = "<B>Logs:</B> Asterisk Log files";
-
-
Modified: trunk/config/setup/1.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/1.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/setup/1.html (original)
+++ trunk/config/setup/1.html Wed Mar 14 18:11:48 2007
@@ -184,7 +184,7 @@
asynchronous: true,
onComplete: showResponse
};
- opt.parameters="action=login&reload=yes&username="+ $('username').value + "&secret=" + $('secret').value ;
+ opt.parameters="action=login&username="+ $('username').value + "&secret=" + $('secret').value ;
var tmp = new Ajax.Request(rawman_url , opt);
}
Modified: trunk/config/setup/3.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/3.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/setup/3.html (original)
+++ trunk/config/setup/3.html Wed Mar 14 18:11:48 2007
@@ -103,7 +103,7 @@
alert("Config Error: " + t.status + ": " + t.statusText);
}
};
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("users.conf") + "&dstfilename=" + encodeURIComponent("users.conf") + "&Action-000000=update&Cat-000000=general&Var-000000=localextenlength&Value-000000=4"; ;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("users.conf") + "&dstfilename=" + encodeURIComponent("users.conf") + "&Action-000000=update&Cat-000000=general&Var-000000=localextenlength&Value-000000=4"; ;
var tmp = new Ajax.Request(rawman_url, opt);
}
}
Modified: trunk/config/setup/4.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/4.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/setup/4.html (original)
+++ trunk/config/setup/4.html Wed Mar 14 18:11:48 2007
@@ -39,7 +39,7 @@
alert("Failed to create a DID context for " + trunk);
}
};
- opt.parameters= "action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request(rawman_url, opt);
}
@@ -56,7 +56,7 @@
alert("Failed to Rename the DID context for " + old_didcontext );
}
};
- opt.parameters= "action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request("../../rawman", opt);
}
@@ -72,7 +72,7 @@
alert("Failed to delete DID context for " + trunk);
}
};
- opt.parameters= "action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request(rawman_url, opt);
}
Modified: trunk/config/setup/5.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/5.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/setup/5.html (original)
+++ trunk/config/setup/5.html Wed Mar 14 18:11:48 2007
@@ -76,7 +76,7 @@
alert("Config Error: " + t.status + ": " + t.statusText);
}
};
- opt.parameters= "action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request(rawman_url, opt);
}
@@ -267,7 +267,7 @@
alert("Config Error: " + t.status + ": " + t.statusText);
}
};
- opt.parameters= "action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
$('userscontent').style.display="none";
$('bg_transparent').style.display='none';
$('status_message').style.display="block";
@@ -407,7 +407,7 @@
alert("Config Error: " + t.status + ": " + t.statusText);
}
};
- opt.parameters= "action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
$('userscontent').style.display="none";
$('bg_transparent').style.display='none';
$('status_message').style.display="block";
Modified: trunk/config/setup/8.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/8.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/setup/8.html (original)
+++ trunk/config/setup/8.html Wed Mar 14 18:11:48 2007
@@ -303,7 +303,7 @@
}
};
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request(rawman_url, opt);
//
}
@@ -374,7 +374,7 @@
alert("Config Error: " + t.status + ": " + t.statusText);
}
};
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request(rawman_url, opt);
}
@@ -433,7 +433,7 @@
var tmp2_match = "s," + d + "," + c ;
uri += build_action('delete',1,b,"exten","", tmp2_match);
}
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request(rawman_url, opt);
}
Modified: trunk/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/trunks.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/trunks.html (original)
+++ trunk/config/trunks.html Wed Mar 14 18:11:48 2007
@@ -60,7 +60,7 @@
gui_alert("Config Error: " + t.status + ": " + t.statusText + "<BR><BR>"+ "Failed to create a DID context for " + trunk );
}
};
- opt.parameters= "action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request("../../rawman", opt);
}
@@ -77,7 +77,7 @@
gui_alert("Failed to Rename the DID context for " + old_didcontext );
}
};
- opt.parameters= "action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request("../../rawman", opt);
}
@@ -94,7 +94,7 @@
gui_alert("Failed to delete DID context for " + trunk);
}
};
- opt.parameters= "action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
+ opt.parameters= "action=updateconfig&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request("../../rawman", opt);
}
Modified: trunk/config/users.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/users.html?view=diff&rev=431&r1=430&r2=431
==============================================================================
--- trunk/config/users.html (original)
+++ trunk/config/users.html Wed Mar 14 18:11:48 2007
@@ -224,7 +224,7 @@
}else{
uri += build_action('update', p, $('devices').value ,"registeriax", "no" ); p++;
}
- opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("users.conf") + "&dstfilename=" + encodeURIComponent("users.conf") + uri;
+ opt.parameters="action=updateconfig&srcfilename=" + encodeURIComponent("users.conf") + "&dstfilename=" + encodeURIComponent("users.conf") + uri;
var tmp = new Ajax.Request("../../rawman", opt);
}
More information about the asterisk-gui-commits
mailing list