From d01e790d95948e972e6531196e8983a7313ddc4e Mon Sep 17 00:00:00 2001 From: hallgren Date: Tue, 16 Oct 2012 22:10:49 +0000 Subject: gfse: identify inherited grammars by their unique id This helps avoiding problems if an inherited grammar is renamed, or if there is more than one grammar with the same name. --- src/www/gfse/cloud2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/www/gfse/cloud2.js') diff --git a/src/www/gfse/cloud2.js b/src/www/gfse/cloud2.js index b04be451a..d949a6ccc 100644 --- a/src/www/gfse/cloud2.js +++ b/src/www/gfse/cloud2.js @@ -177,7 +177,7 @@ function download_json() { downloading--; var newg=JSON.parse(grammar); debug("Downloaded "+newg.unique_name) - var i=my_grammar(newg.unique_name+".json"); + var i=my_grammar(newg.unique_name); if(i!=null) merge_grammar(i,newg) else { debug("New") -- cgit v1.2.3