From b3a90d0ede699f612d427511c3437441f2c1015d Mon Sep 17 00:00:00 2001 From: David Huynh Date: Sun, 11 Dec 2011 22:01:42 +0000 Subject: [PATCH] Bundle scripts. Make sure new version notification will work. git-svn-id: http://google-refine.googlecode.com/svn/trunk@2406 7d457c2a-affb-35e4-300a-418c747d4874 --- main/webapp/modules/core/MOD-INF/controller.js | 2 +- main/webapp/modules/core/scripts/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/webapp/modules/core/MOD-INF/controller.js b/main/webapp/modules/core/MOD-INF/controller.js index 6f1ac1d6d..95efb0d5a 100644 --- a/main/webapp/modules/core/MOD-INF/controller.js +++ b/main/webapp/modules/core/MOD-INF/controller.js @@ -34,7 +34,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. var html = "text/html"; var encoding = "UTF-8"; var ClientSideResourceManager = Packages.com.google.refine.ClientSideResourceManager; -var bundle = false; +var bundle = true; var templatedFiles = { // Requests with last path segments mentioned here diff --git a/main/webapp/modules/core/scripts/index.js b/main/webapp/modules/core/scripts/index.js index 7a407943e..6e1a93f77 100644 --- a/main/webapp/modules/core/scripts/index.js +++ b/main/webapp/modules/core/scripts/index.js @@ -79,8 +79,8 @@ $(function() { var script = $('') .attr("src", "http://google-refine.googlecode.com/svn/support/releases.js") - .attr("type", "text/javascript") - .appendTo(document.body); + .attr("type", "text/javascript"); + document.body.appendChild(script[0]); var poll = function() { if ("releases" in window) {