From 2a0dbabaf5b09c1d331f7664ada1b09210347169 Mon Sep 17 00:00:00 2001 From: sanj Date: Thu, 29 Jul 2010 04:13:22 +0530 Subject: [PATCH] download doc fix --- edgware/static/js/editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edgware/static/js/editor.js b/edgware/static/js/editor.js index 11e3328..db2fef3 100644 --- a/edgware/static/js/editor.js +++ b/edgware/static/js/editor.js @@ -1599,7 +1599,8 @@ $('.image_rotate').live("click", function(e) { $('.download_doc').live("click", function(e) { var r = $(this).getResource(); var path = r.file; - window.open(path); + var base_url = "http://" + window.location.hostname + window.open(base_url + path); }); $('.printMe').live("click", function(e) {