Restore jquery.js as it is still used by the viewer

This commit is contained in:
Kovid Goyal 2017-04-10 14:16:02 +05:30
parent 6af8bdab97
commit 420841377c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 6243 additions and 3 deletions

6240
resources/viewer/jquery.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -215,7 +215,7 @@ class Handler(HTTPRequestHandler): # {{{
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()
# }}}