From 0f7743992b1816ba0bddffe4c7c122469c47e32b Mon Sep 17 00:00:00 2001 From: hallgren Date: Mon, 25 Jul 2011 19:21:46 +0000 Subject: gfse: various small improvements --- src/editor/simple/editor.js | 47 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 6 deletions(-) (limited to 'src/editor/simple/editor.js') diff --git a/src/editor/simple/editor.js b/src/editor/simple/editor.js index 90d85274b..5c08078fe 100644 --- a/src/editor/simple/editor.js +++ b/src/editor/simple/editor.js @@ -66,9 +66,9 @@ function draw_grammar_list() { } } if(local.get("count",null)==null) - editor.appendChild(text("You have not created any grammars yet.")); + home.appendChild(text("You have not created any grammars yet.")); else if(local.count==0) - editor.appendChild(text("Your grammar list is empty.")); + home.appendChild(text("Your grammar list is empty.")); home.appendChild(gs); home.appendChild( @@ -866,6 +866,7 @@ function upload(g) { function upload_json(cont) { function upload3(resptext,status) { local.put("json_uploaded",Date.now()); + //debug("Upload complete") if(cont) cont(); else { var sharing=element("sharing"); @@ -874,7 +875,10 @@ function upload_json(cont) { } function upload2(dir) { var prefix=dir.substr(10)+"-" // skip "/tmp/gfse." - var form=new FormData(); + //debug("New form data"); + //var form=new FormData(); // !!! Doesn't work on Android 2.2! + var form="",sep=""; + //debug("Preparing form data"); for(var i=0;i