minibar/support.js: added function encodeArgs.

This commit is contained in:
hallgren
2011-10-10 17:40:53 +00:00
parent 04d2dc757c
commit 693b807cb5
2 changed files with 10 additions and 4 deletions

View File

@@ -17,10 +17,7 @@ function pgf_online(options) {
http_get_json(this.grammars_url+"grammars.cgi",cont);
},
pgf_call: function(cmd,args,cont) {
var url=this.current_grammar_url+"?command="+cmd;
for(var arg in args)
if(args[arg]!=undefined)
url+="&"+arg+"="+encodeURIComponent(args[arg]);
var url=this.current_grammar_url+"?command="+cmd+encodeArgs(args)
http_get_json(url,cont);
},