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
3 changed files with 6243 additions and 3 deletions
+6240
View File
File diff suppressed because it is too large Load Diff
+1 -1
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
+2 -2
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()
# }}}