pari: trunk r84 - in /trunk/config: ./ scripts/
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Fri Oct 20 12:15:36 MST 2006
Author: pari
Date: Fri Oct 20 14:15:35 2006
New Revision: 84
URL: http://svn.digium.com/view/asterisk-gui?rev=84&view=rev
Log:
renaming stuff for naming consistency
Added:
trunk/config/record.html
- copied unchanged from r82, trunk/config/record_vmenu.html
trunk/config/sipgeneral.html
- copied unchanged from r80, trunk/config/sip_general.html
Removed:
trunk/config/record_vmenu.html
trunk/config/sip_general.html
Modified:
trunk/config/cfgadvanced.html
trunk/config/cfgappliance.html
trunk/config/cfgbasic.html
trunk/config/scripts/astman.js
Modified: trunk/config/cfgadvanced.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgadvanced.html?rev=84&r1=83&r2=84&view=diff
==============================================================================
--- trunk/config/cfgadvanced.html (original)
+++ trunk/config/cfgadvanced.html Fri Oct 20 14:15:35 2006
@@ -78,7 +78,7 @@
new PanelDef("menus", "Voice Menus", "accordion-icon.gif",
"Menus allow for more efficient routing of calls from incoming callers."),
-// new PanelDef("record_vmenu", "Record a Menu", "accordion-icon.gif",
+// new PanelDef("record", "Record a Menu", "accordion-icon.gif",
// "Allows you to record custom voicemenus over a phone"),
new PanelDef("moh", "Music On Hold", "accordion-icon.gif", " Music on hold sometimes keeps people less angry while they wait for an answer"),
Modified: trunk/config/cfgappliance.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgappliance.html?rev=84&r1=83&r2=84&view=diff
==============================================================================
--- trunk/config/cfgappliance.html (original)
+++ trunk/config/cfgappliance.html Fri Oct 20 14:15:35 2006
@@ -81,7 +81,7 @@
new PanelDef("menus", "Voice Menus", "accordion-icon.gif",
"Menus allow for more efficient routing of calls from incoming callers."),
-// new PanelDef("record_vmenu", "Record a Menu", "accordion-icon.gif",
+// new PanelDef("record", "Record a Menu", "accordion-icon.gif",
// "Allows you to record custom voicemenus over a phone"),
new PanelDef("status", "Status", "accordion-icon.gif", "Monitor active channels."),
Modified: trunk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgbasic.html?rev=84&r1=83&r2=84&view=diff
==============================================================================
--- trunk/config/cfgbasic.html (original)
+++ trunk/config/cfgbasic.html Fri Oct 20 14:15:35 2006
@@ -81,8 +81,8 @@
new PanelDef("menus", "Voice Menus", "accordion-icon.gif",
"Menus allow for more efficient routing of calls from incoming callers."),
-// new PanelDef("record_vmenu", "Record a Menu", "accordion-icon.gif",
-// "Allows you to record custom voicemenus over a phone"),
+ new PanelDef("record", "Record a Menu", "accordion-icon.gif",
+ "Allows you to record custom voicemenus over a phone"),
new PanelDef("status", "Status", "accordion-icon.gif", "Monitor active channels."),
Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?rev=84&r1=83&r2=84&view=diff
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Fri Oct 20 14:15:35 2006
@@ -389,24 +389,34 @@
-
-
-
-
-
-
-
+function action_issuccess(responseText) {
+ if ( responseText.indexOf("Response: Success") == -1 ){
+ return false;
+ }else{
+ return true;
+ }
+}
+
+function action_errmsg (responseText){
+ var tmp = responseText.split("Message:");
+ return tmp[1];
+}
function delete_item(box, value, noconfirm) {
var opt = {
method: 'get',
asynchronous: true,
- onSuccess: function() {
- if (box.widgets['status'])
- box.widgets['status'].innerHTML = "<i>Deleted.</i>";
- if (box.callbacks.delchanges)
- box.callbacks.delchanges(box, box.delvalue, box.delcat);
+ onSuccess: function(t) {
+// if(action_issuccess(t.responseText) ){
+ if (box.widgets['status'])
+ box.widgets['status'].innerHTML = "<i>Deleted.</i>";
+ if (box.callbacks.delchanges)
+ box.callbacks.delchanges(box, box.delvalue, box.delcat);
+// }else{
+// alert( action_errmsg (t.responseText) );
+// }
+
},
onFailure: function(t) {
alert("Config Error: " + t.status + ": " + t.statusText);
More information about the asterisk-gui-commits
mailing list