Revert "Poprawienie przycisku "wersja do druku""
authorŁukasz Rekucki <lrekucki@gmail.com>
Fri, 9 Oct 2009 10:09:04 +0000 (12:09 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Fri, 9 Oct 2009 10:09:04 +0000 (12:09 +0200)
This reverts commit 651925889ca81dadf344d6bc412373eb5f3801fc.

apps/api/handlers/library_handlers.py
project/static/js/views/html.js

index f1b683f..d7438a1 100644 (file)
@@ -216,7 +216,7 @@ class DocumentHTMLHandler(BaseHandler):
     allowed_methods = ('GET')
 
     @hglibrary
-    def read(self, request, docid, lib, stylesheet='full'):
+    def read(self, request, docid, lib, stylesheet='partial'):
         """Read document as html text"""
         try:
             revision = request.GET.get('revision', 'latest')
index a6d519c..ebdf90a 100644 (file)
@@ -44,14 +44,8 @@ var HTMLView = View.extend({
 
         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));
     },