97c77a25c2
We cannot use jQuery.get (a.k.a. $.get) in the mobile apps as that uses some XMLHttpRequest thing that obviously won't work when there is no web server involved, but loleaflet.html has been loaded from a file: URL. Simply store the help file into a global variable and use that instead. A small refactoring of the showHelp function was needed to factor out the call of vex.open into a separate function. That is called directly from showHelp in the mobile app case. Otherwise, it is called from a short function passed to $.get, as before. Note that in the mobile apps we cannot use window.open (which in the mobile apps has been redefined to send a "HYPERLINK <url>" message to the native app code) to open the help file, because the HYPERLINK message is for opening a web page in a browser, completely separately from the app. It is used to display the commit log for the Help>About functionality. And anyway, the old idea (that didn't work) to take a shortcut in the mobile app case and just display the help file in showHelp will not work anyway as we need the code that edits the contents before it is displayed, and handles the close button in the help file. This fixes https://github.com/CollaboraOnline/online/issues/400 This fixes https://github.com/CollaboraOnline/online/issues/401 Change-Id: I16dc960f26af7e6e89663c3ac0523ce5c3d41c34 Signed-off-by: Tor Lillqvist <tml@collabora.com> |
||
---|---|---|
.. | ||
framed.doc.html | ||
framed.html | ||
load.doc.html | ||
loleaflet-help.html | ||
loleaflet.html.m4 | ||
signing-identities.html |