Server: Fix downloading files via the list of formats not working when launching the calibre app from the homescreen on iOS

This commit is contained in:
Kovid Goyal 2017-08-16 17:01:57 +05:30
parent 7cf94768cb
commit 8fcaf05e98
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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()}')
)
))
)