download doc fix

This commit is contained in:
sanj 2010-07-29 04:13:22 +05:30
parent cfb28074fb
commit 2a0dbabaf5

View File

@ -1599,7 +1599,8 @@ $('.image_rotate').live("click", function(e) {
$('.download_doc').live("click", function(e) { $('.download_doc').live("click", function(e) {
var r = $(this).getResource(); var r = $(this).getResource();
var path = r.file; var path = r.file;
window.open(path); var base_url = "http://" + window.location.hostname
window.open(base_url + path);
}); });
$('.printMe').live("click", function(e) { $('.printMe').live("click", function(e) {