Poprawienie przycisku "wersja do druku"
authorŁukasz Rekucki <lrekucki@gmail.com>
Fri, 9 Oct 2009 10:10:33 +0000 (12:10 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Fri, 9 Oct 2009 10:10:33 +0000 (12:10 +0200)
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));
     },