fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Another hotkey fix.
[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
a7f02dd
..
a8eb4d0
100644
(file)
--- a/
project/static/js/views/html.js
+++ b/
project/static/js/views/html.js
@@
-20,6
+20,9
@@
var HTMLView = View.extend({
modelDataChanged: function(property, value) {
$('.htmlview', this.element).html(value);
modelDataChanged: function(property, value) {
$('.htmlview', this.element).html(value);
+
+ var base = this.$printLink.attr('ui:baseref');
+ this.$printLink.attr('href', base + "?revision=" + this.model.get('revision'));
},
modelStateChanged: function(property, value) {
},
modelStateChanged: function(property, value) {
@@
-35,6
+38,13
@@
var HTMLView = View.extend({
this.freeze(this.model.get('error'));
}
},
this.freeze(this.model.get('error'));
}
},
+
+
+ render: function() {
+ if(this.$printLink) this.$printLink.unbind();
+ this._super();
+ this.$printLink = $('.html-print-link', this.element);
+ },
reload: function() {
this.model.load(true);
reload: function() {
this.model.load(true);