mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 02:43:34 +02:00
Restore jquery.js as it is still used by the viewer
This commit is contained in:
parent
6af8bdab97
commit
420841377c
3 changed files with 6243 additions and 3 deletions
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,
|
||||
'referencing':None,
|
||||
'hyphenation':None,
|
||||
'jquery':'content_server/jquery.js',
|
||||
'jquery':'viewer/jquery.js',
|
||||
'jquery_scrollTo':None,
|
||||
'hyphenator':'viewer/hyphenate/Hyphenator.js',
|
||||
'images':None
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ def send_head(self):
|
|||
def translate_path(self, path):
|
||||
path = self.special_resources.get(path, path)
|
||||
if path.endswith('/jquery.js'):
|
||||
return P('content_server/jquery.js')
|
||||
return P('viewer/jquery.js')
|
||||
|
||||
return HTTPRequestHandler.translate_path(self, path)
|
||||
|
||||
|
|
@ -329,7 +329,7 @@ def main():
|
|||
else:
|
||||
serve(port=args.port, host=args.host)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
# }}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue