From: Ɓukasz Rekucki <lrekucki@gmail.com>
Date: Fri, 9 Oct 2009 10:10:33 +0000 (+0200)
Subject: Poprawienie przycisku "wersja do druku"
X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/0f2caec0a29deb23c912042b2f81473a2b9722e2

Poprawienie przycisku "wersja do druku"
---

diff --git a/project/static/js/views/html.js b/project/static/js/views/html.js
index ebdf90af..d9de4926 100644
--- a/project/static/js/views/html.js
+++ b/project/static/js/views/html.js
@@ -46,6 +46,9 @@ var HTMLView = View.extend({
         this._super();
         this.$printLink = $('.html-print-link', this.element);
 
+        var base = this.$printLink.attr('ui:baseref');
+        this.$printLink.attr('href', base + "?revision=" + this.model.get('revision'));
+
         this.element.bind('click', this.itemClicked.bind(this));
     },