summaryrefslogtreecommitdiffstats
path: root/help3xsl/paginathing.js
Commit message (Collapse)AuthorAgeFilesLines
* tdf#124245 Polyfills and fixes for IE11Ilmari Lauhakangas2019-03-271-25/+0
| | | | | | | | | | | | | | | | | | | | | The polyfills can be removed after we drop IE11 support. Other IE11 fixes: Change from document.URL to window.location.pathname because otherwise we get local Windows paths with backward slashes. Use clear: left; for google-donation element so it doesn't float on top of other elements. Don't use defer to load fuzzysort.js and prism.js. Change-Id: I6c0143eab555c8b1fbdbde8e749a24baed2f69c8 Reviewed-on: https://gerrit.libreoffice.org/69549 Tested-by: Jenkins Reviewed-by: himajin100000 <himajin100000@gmail.com> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Moved the pagination controls to the topIlmari Lauhakangas2019-01-231-6/+7
| | | | | | | | | | As the height of the result list keeps changing constantly, it was highly annoying to click the arrows in the controls. Change-Id: I82308adc3971f25ed629009bf1e0854d38197560 Reviewed-on: https://gerrit.libreoffice.org/66795 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* tdf#119415 change from fuse.js to fuzzysort.jsIlmari Lauhakangas2018-11-091-2/+2
| | | | | | | | | | Tied the index listing to the current module. Fuzzysort.js is MIT licensed. Change-Id: I5d95cc1870a1856089217846ed0af572abc882d7 Reviewed-on: https://gerrit.libreoffice.org/63203 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Helponline: Tweak pagination symbols for improved clarityAdolfo Jayme Barrientos2018-04-231-4/+4
| | | | Change-Id: I5308fb5f7039db592038f674b390f92779376d6d
* tdf#115255 and auto-expand contents per subitemIlmari Lauhakangas2018-02-081-11/+11
| | | | | | | | | | | | | | | JavaScript stuff moved from online_transform.xsl to help.js. Simplified bookmarks markup. Span elements with class "input" and length more than 3 characters can be copied to clipboard by mouse click. Bubli's feature request for auto-expanding contents per subitem is also implemented. Logic for adding headings to index list was reimplemented. Change-Id: I87b6f189a040a73a1ab9dda1ec9cd790b06da202 Reviewed-on: https://gerrit.libreoffice.org/49421 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Fixes for MS browsers and tweaks to fuzzy searchIlmari Lauhakangas2018-01-311-10/+35
| | | | | | | | | | Some experimental JS tech had slipped into the mix. Search settings should also be a bit more performant now. Change-Id: Ifae9986efc02d20fefa9480ae463107fe4743944 Reviewed-on: https://gerrit.libreoffice.org/48988 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
* Switched from list.js to fuse.js and paginathing.jsIlmari Lauhakangas2018-01-301-0/+242
Fuse.js has Apache License 2.0 and paginathing.js has Expat License (aka MIT). Paginathing is a paginating utility and it was originally jQuery, but due to performance concerns I converted it to pure JavaScript and rather brutally adapted it to our needs. Fuse.js gives us fuzzy search with multiple strings. The settings can be refined, if needed. Settings can be easily tested with the live demo: http://fusejs.io/ Change-Id: I1cf6a6f7d06adbcac95760db90187ee26be8e908 Reviewed-on: https://gerrit.libreoffice.org/48906 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>