From 8fcaf05e987c8709800801e32e9df52f3b646254 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 16 Aug 2017 17:01:57 +0530 Subject: [PATCH] Server: Fix downloading files via the list of formats not working when launching the calibre app from the homescreen on iOS --- src/pyj/book_list/book_details.pyj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pyj/book_list/book_details.pyj b/src/pyj/book_list/book_details.pyj index a6876b6160..72756cc8ce 100644 --- a/src/pyj/book_list/book_details.pyj +++ b/src/pyj/book_list/book_details.pyj @@ -87,8 +87,9 @@ def on_fmt_click(ev): E.div(class_='button-box', create_button(_('Read'), 'book', action.bind(None, read_format)), '\xa0', - create_button(_('Download'), 'cloud-download', action.bind(None, download_format), - tooltip=_('File size: {}').format(human_readable(sz))), + create_button(_('Download'), 'cloud-download', download_url(book_id, fmt), + _('File size: {}').format(human_readable(sz)), + download_filename=f'{title}.{fmt.toLowerCase()}') ) )) )