pari: trunk r858 - /trunk/config/cli.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu May 3 09:30:33 MST 2007


Author: pari
Date: Thu May  3 11:30:33 2007
New Revision: 858

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=858
Log:
Strip off rawman response messages from the command output

Modified:
    trunk/config/cli.html

Modified: trunk/config/cli.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cli.html?view=diff&rev=858&r1=857&r2=858
==============================================================================
--- trunk/config/cli.html (original)
+++ trunk/config/cli.html Thu May  3 11:30:33 2007
@@ -41,6 +41,11 @@
 }
 
 function gotResponse(op){
+
+	op = op.replace(/Response: Follows/, "");
+	op = op.replace(/Privilege: Command/, "");
+	op = op.replace(/--END COMMAND--/, "");
+	op = "Command><B> <Font color=#13138a size=+1>" + _$('cli_cmd').value + "</FONT></B>" + op ;
 	_$('cli_output').innerHTML = "<PRE>"+ op + "</PRE>";
 	_$('cli_cmd').value = "";
 	_$('cli_cmd').focus();



More information about the asterisk-gui-commits mailing list