remove unused js vars
parent
c541960cf3
commit
16dfb27724
|
@ -491,7 +491,6 @@ class OpenSearch(object):
|
||||||
lang = self.lang_to_default_locale.get(lang, 'en_US')
|
lang = self.lang_to_default_locale.get(lang, 'en_US')
|
||||||
lang2 = self.lang[:2]
|
lang2 = self.lang[:2]
|
||||||
|
|
||||||
self.fb_lang = lang if lang in FB_LANGS else 'en_US'
|
|
||||||
self.paypal_lang = lang if lang in PAYPAL_LANGS else 'en_US'
|
self.paypal_lang = lang if lang in PAYPAL_LANGS else 'en_US'
|
||||||
self.flattr_lang = lang if lang in FLATTR_LANGS else 'en_US'
|
self.flattr_lang = lang if lang in FLATTR_LANGS else 'en_US'
|
||||||
|
|
||||||
|
@ -553,7 +552,6 @@ class OpenSearch(object):
|
||||||
self.show_next_page_link = (self.end_index < self.total_results)
|
self.show_next_page_link = (self.end_index < self.total_results)
|
||||||
|
|
||||||
self.desktop_search = self.url('search', format = None)
|
self.desktop_search = self.url('search', format = None)
|
||||||
self.json_search = self.url('suggest', format = None)
|
|
||||||
|
|
||||||
self.base_url = self.url(host = self.file_host, protocol='https')
|
self.base_url = self.url(host = self.file_host, protocol='https')
|
||||||
|
|
||||||
|
|
|
@ -24,10 +24,8 @@
|
||||||
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
<script type="text/javascript">//<![CDATA[
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
var json_search = "/ebooks/suggest/";
|
|
||||||
var canonical_url = "https://www.gutenberg.org/ebooks/";
|
var canonical_url = "https://www.gutenberg.org/ebooks/";
|
||||||
var lang = "en";
|
var lang = "en";
|
||||||
var fb_lang = "en_US"; /* FB accepts only xx_XX */
|
|
||||||
var msg_load_more = "Load More Results…";
|
var msg_load_more = "Load More Results…";
|
||||||
var page_mode = "screen";
|
var page_mode = "screen";
|
||||||
var dialog_title = "";
|
var dialog_title = "";
|
||||||
|
|
|
@ -24,10 +24,8 @@
|
||||||
|
|
||||||
<!--! IE8 does not recognize application/javascript -->
|
<!--! IE8 does not recognize application/javascript -->
|
||||||
<script>//<![CDATA[
|
<script>//<![CDATA[
|
||||||
var json_search = "${os.json_search}";
|
|
||||||
var canonical_url = "${os.canonical_url}";
|
var canonical_url = "${os.canonical_url}";
|
||||||
var lang = "${os.lang}";
|
var lang = "${os.lang}";
|
||||||
var fb_lang = "${os.fb_lang}"; /* FB accepts only xx_XX */
|
|
||||||
var msg_load_more = "${_('Load More Results…')}";
|
var msg_load_more = "${_('Load More Results…')}";
|
||||||
var page_mode = "${os.page_mode}";
|
var page_mode = "${os.page_mode}";
|
||||||
var dialog_title = "${os.user_dialog[1]}";
|
var dialog_title = "${os.user_dialog[1]}";
|
||||||
|
|
Loading…
Reference in New Issue