fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Poprawienie przycisku "wersja do druku"
[redakcja.git]
/
project
/
static
/
js
/
views
/
html.js
diff --git
a/project/static/js/views/html.js
b/project/static/js/views/html.js
index
ebdf90a
..
a6d519c
100644
(file)
--- a/
project/static/js/views/html.js
+++ b/
project/static/js/views/html.js
@@
-44,8
+44,14
@@
var HTMLView = View.extend({
if(this.$printLink) this.$printLink.unbind();
this._super();
if(this.$printLink) this.$printLink.unbind();
this._super();
+
this.$printLink = $('.html-print-link', this.element);
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));
},
this.element.bind('click', this.itemClicked.bind(this));
},