Poprawienie przycisku "wersja do druku"
[redakcja.git] / project / static / js / views / html.js
index ebdf90a..a6d519c 100644 (file)
@@ -44,8 +44,14 @@ var HTMLView = View.extend({
 
         if(this.$printLink) this.$printLink.unbind();
         this._super();
+
         this.$printLink = $('.html-print-link', this.element);
 
+        if(this.$printLink) {
+            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));
     },