Remove unused attributes

This commit is contained in:
Kovid Goyal 2016-06-11 08:33:16 +05:30
parent 48ba6080ea
commit 7d4676232b
2 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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)