From 7b3c0cf18d0663cc77e2bf48dffd6bbd9fff0d27 Mon Sep 17 00:00:00 2001 From: sanj Date: Fri, 30 Jul 2010 20:30:59 +0530 Subject: [PATCH] removed imagebox default border, trying to fix print multiple pages --- edgware/editor/views.py | 4 +--- edgware/static/js/editor.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/edgware/editor/views.py b/edgware/editor/views.py index 66edcd7..74170f0 100644 --- a/edgware/editor/views.py +++ b/edgware/editor/views.py @@ -585,12 +585,10 @@ def article_pdf(request): pages = Page.objects.filter(article=article) m = article.get_print_multiplier(dpi) url = SITE_BASE + "/edit/view_article/%d/?m=%f" % (article.id, m) - url_list = [url] - ''' +# url_list = [url] for p in pages: url = SITE_BASE + "/edit/view_article/%d/?m=%f" % (article.id, m) url_list.append(url) - ''' output_path = MEDIA_ROOT + "/pdf/" + article.name + "_" + str(article.current_revision()) + ".pdf" pdf_path = print_url_list(url_list, width_mm, height_mm, dpi, output_path) return HttpResponseRedirect(pdf_path.replace(MEDIA_ROOT, "/static")) diff --git a/edgware/static/js/editor.js b/edgware/static/js/editor.js index db2fef3..9844a51 100644 --- a/edgware/static/js/editor.js +++ b/edgware/static/js/editor.js @@ -638,7 +638,7 @@ ImageBox.prototype.create = function(json) { 'height': that.css.height, 'width': that.css.width, 'border-style': 'solid', - 'border-width': '3px', + 'border-width': '0px', 'border-color': '#000000', 'z-index': '1', 'top': '100px',