Poprawienie przycisku "wersja do druku"
[redakcja.git] / project / static / js / views / html.js
index ebdf90a..d9de492 100644 (file)
@@ -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));
     },