X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/de93104a2513acc5a378496c6bf6ab7ed0d45d60..0f2caec0a29deb23c912042b2f81473a2b9722e2:/project/static/js/views/html.js?ds=sidebyside 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)); },