syntax editor: fix references to global object 'server'

This commit is contained in:
hallgren
2013-04-12 17:50:44 +00:00
parent eb941d6eac
commit 1d0f9372f4

View File

@@ -479,7 +479,7 @@ Editor.prototype.generate_random = function() {
var err = function(data){
alert("Error");
};
server.get_random(args, cont, err);
t.server.get_random(args, cont, err);
}
// Redraw tree
@@ -580,6 +580,6 @@ Editor.prototype.import_ast = function(abstr) {
var err = function(tree){
alert("Invalid abstract syntax tree");
};
server.pgf_call("abstrjson", args, cont, err);
t.server.pgf_call("abstrjson", args, cont, err);
}