mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Restore jquery.js as it is still used by the viewer
This commit is contained in:
parent
6af8bdab97
commit
420841377c
6240
resources/viewer/jquery.js
vendored
Normal file
6240
resources/viewer/jquery.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -21,7 +21,7 @@ class JavaScriptLoader(object):
|
|||||||
'bookmarks':None,
|
'bookmarks':None,
|
||||||
'referencing':None,
|
'referencing':None,
|
||||||
'hyphenation':None,
|
'hyphenation':None,
|
||||||
'jquery':'content_server/jquery.js',
|
'jquery':'viewer/jquery.js',
|
||||||
'jquery_scrollTo':None,
|
'jquery_scrollTo':None,
|
||||||
'hyphenator':'viewer/hyphenate/Hyphenator.js',
|
'hyphenator':'viewer/hyphenate/Hyphenator.js',
|
||||||
'images':None
|
'images':None
|
||||||
|
@ -215,7 +215,7 @@ class Handler(HTTPRequestHandler): # {{{
|
|||||||
def translate_path(self, path):
|
def translate_path(self, path):
|
||||||
path = self.special_resources.get(path, path)
|
path = self.special_resources.get(path, path)
|
||||||
if path.endswith('/jquery.js'):
|
if path.endswith('/jquery.js'):
|
||||||
return P('content_server/jquery.js')
|
return P('viewer/jquery.js')
|
||||||
|
|
||||||
return HTTPRequestHandler.translate_path(self, path)
|
return HTTPRequestHandler.translate_path(self, path)
|
||||||
|
|
||||||
@ -329,7 +329,7 @@ def main():
|
|||||||
else:
|
else:
|
||||||
serve(port=args.port, host=args.host)
|
serve(port=args.port, host=args.host)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user