diff options
Diffstat (limited to 'src/www/syntax-editor/js/editor.js')
| -rw-r--r-- | src/www/syntax-editor/js/editor.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/www/syntax-editor/js/editor.js b/src/www/syntax-editor/js/editor.js index b7fa2dd87..608770edb 100644 --- a/src/www/syntax-editor/js/editor.js +++ b/src/www/syntax-editor/js/editor.js @@ -108,14 +108,16 @@ Editor.prototype.get_refinements=function(cat) { Editor.prototype.select_refinement=function(fun) { with (this) { + clear(ui.refinements); ast.removeChildren(); ast.setFun(fun); +// redraw_tree(); + var args = { id: fun, format: "json" }; var err = function(data){ - clear(refinements); alert("no refinements"); }; server.browse(args, bind(complete_refinement,this), err); @@ -139,7 +141,7 @@ Editor.prototype.complete_refinement=function(data) { } } - // Update vis + // Update ui redraw_tree(); update_linearisation(); |
