From a182289cd9c9e9b737ddc82a6b5129543136d11f Mon Sep 17 00:00:00 2001 From: Arvind Date: Wed, 10 Jul 2013 17:34:19 +0530 Subject: [PATCH] Adding config.js to sweettext --- server.py | 5 +++++ static/text-annotation.js | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index d976d3f..65b31b6 100644 --- a/server.py +++ b/server.py @@ -151,6 +151,10 @@ def SWeeText(): script = root.makeelement('script') script.set('src', url_for('static', filename='text-annotation.js')) + + config_script = root.makeelement('script') + config_script.set('src', url_for('static', filename='config.js')) + tree = root.makeelement('script') tree.set('src', url_for('static', filename='tree.js')) @@ -188,6 +192,7 @@ def SWeeText(): root.head.append(us) root.head.append(tree) root.head.append(script) + root.head.append(config_script) return lxml.html.tostring(root) diff --git a/static/text-annotation.js b/static/text-annotation.js index 3e4c938..2902ba1 100644 --- a/static/text-annotation.js +++ b/static/text-annotation.js @@ -218,7 +218,3 @@ var attributes = {}; } }; })(); -var config = { - 'postTweetUrl':'http://localhost:5001', - 'indexer':'http://localhost:5000' -}; -- 1.7.10.4