From: Ɓukasz Rekucki Date: Fri, 9 Oct 2009 10:09:04 +0000 (+0200) Subject: Revert "Poprawienie przycisku "wersja do druku"" X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/59ff1b66b820a1dd959726ee59ab39e45e91eaff?ds=sidebyside;hp=-c Revert "Poprawienie przycisku "wersja do druku"" This reverts commit 651925889ca81dadf344d6bc412373eb5f3801fc. --- 59ff1b66b820a1dd959726ee59ab39e45e91eaff diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py index f1b683fd..d7438a18 100644 --- a/apps/api/handlers/library_handlers.py +++ b/apps/api/handlers/library_handlers.py @@ -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') diff --git a/project/static/js/views/html.js b/project/static/js/views/html.js index a6d519c9..ebdf90af 100644 --- a/project/static/js/views/html.js +++ b/project/static/js/views/html.js @@ -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)); },