pari: branch 2.0 r4402 - /branches/2.0/config/js/astman.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Thu Jan 8 12:01:48 CST 2009
Author: pari
Date: Thu Jan 8 12:01:47 2009
New Revision: 4402
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4402
Log:
fix: 'emptycat' action is not working in 1.6.0
always delete each line in the context
Modified:
branches/2.0/config/js/astman.js
Modified: branches/2.0/config/js/astman.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/astman.js?view=diff&rev=4402&r1=4401&r2=4402
==============================================================================
--- branches/2.0/config/js/astman.js (original)
+++ branches/2.0/config/js/astman.js Thu Jan 8 12:01:47 2009
@@ -1382,13 +1382,13 @@
empty_context: function( ct ){ // ASTGUI.miscFunctions.empty_context({ filename:'somefile.conf', context : 'context_x', cb : fn })
try{
- if( parent.sessionData.PLATFORM.isAST_1_6 ){
- var u = new listOfSynActions(ct.filename);
- u.new_action('emptycat', ct.context , '', '' ) ;
- u.callActions();
- ct.cb();
- return;
- }else{
+ //if( parent.sessionData.PLATFORM.isAST_1_6 ){
+ // var u = new listOfSynActions(ct.filename);
+ // u.new_action('emptycat', ct.context , '', '' ) ;
+ // u.callActions();
+ // ct.cb();
+ // return;
+ //}else{
var sel_cxt = context2json({ filename: ct.filename , context : ct.context , usf:0 });
var x = new listOfActions(ct.filename);
sel_cxt.each(function(line){
@@ -1397,7 +1397,7 @@
x.new_action('delete', ct.context , var_name, '', var_value);
});
x.callActions(ct.cb);
- }
+ //}
}catch(err){
ASTGUI.Log.Error(err.description);
}
More information about the asterisk-gui-commits
mailing list