allowed_methods = ('GET')
@hglibrary
- def read(self, request, docid, lib, stylesheet='partial'):
+ def read(self, request, docid, lib, stylesheet='full'):
"""Read document as html text"""
try:
revision = request.GET.get('revision', 'latest')
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));
},