From 7d4676232ba904c570ba2362742ef8021123e841 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 11 Jun 2016 08:33:16 +0530 Subject: [PATCH] Remove unused attributes --- src/pyj/book_list/search.pyj | 5 ++--- src/pyj/read_book/toc.pyj | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pyj/book_list/search.pyj b/src/pyj/book_list/search.pyj index 31c23364c9..64c5247ade 100644 --- a/src/pyj/book_list/search.pyj +++ b/src/pyj/book_list/search.pyj @@ -49,9 +49,8 @@ class SearchPanel: search_button = create_button(_('Search'), icon='search', action=self.execute_search.bind(self), tooltip=_('Do the search')) search_container.appendChild(E.div(style="display: flex; width: 100%;", E.input( - type='search', autosave='search-for-books-in-main-calibre-booklist', name='search-books', - autocomplete='on', inputmode='latin', - title=_('Search for books'), placeholder=_('Enter the search query'), spellcheck='false', + type='search', name='search-books', + title=_('Search for books'), placeholder=_('Enter the search query'), style="flex-grow: 10; padding: {} 0.5em; margin-right: 0.5em".format(BUTTON_VPADDING), onkeydown=self.on_input_keydown.bind(self), ), search_button diff --git a/src/pyj/read_book/toc.pyj b/src/pyj/read_book/toc.pyj index 5494aca0b3..4cc6fab0a5 100644 --- a/src/pyj/read_book/toc.pyj +++ b/src/pyj/read_book/toc.pyj @@ -58,9 +58,8 @@ def create_toc_panel(book, container, onclick, onclose): container.appendChild(E.div( style='margin: 1ex 1em; display: flex;', E.input( - type='search', autosave='search-toc-in-calibre-book-reader', name='toc-serach', - autocomplete='on', inputmode='latin', - title=_('Search Table of Contents'), placeholder=_('Search Table of Contents'), spellcheck='false', + type='search', name='toc-serach', + title=_('Search Table of Contents'), placeholder=_('Search Table of Contents'), style="flex-grow: 10; margin-right: 0.5em", onkeydown=on_input_keydown, ), E.div(class_='simple-link', svgicon('search'), onclick=on_search_click)