]> git.koha-community.org Git - koha.git/commit
Bug 25350: Load Emoji picker assets more efficiently
authorOwen Leonard <oleonard@myacpl.org>
Fri, 1 May 2020 18:29:33 +0000 (18:29 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 4 May 2020 08:44:45 +0000 (09:44 +0100)
commit67f695001a17556fc3b1796181fff9a1493cae94
tree04df0cbea5910282c25a981872cae3f3713a45a6
parentd6ab91721366264d40fd092f6a2e1e7f74dfb8b5
Bug 25350: Load Emoji picker assets more efficiently

This patch moves the Emoji picker JS assets out of opac-bottom.inc and
into opac-detail.tt. This prevents the assets from being loaded on every
page of the OPAC when they're only used on opac-detail.

The patch also combines and minifies the 4 JavaScript files used by the
feature. opac-detail.tt now loads only the one file.

To test, apply the patch and make sure the TagsEnabled and
TagsInputOnDetail preferences are enabled.

- Log in to the OPAC and view the detail page for a bibliographic
  record.
- Click the "Add tag(s)" link
- Verify that the emoji-picker works for adding emojis

Signed-off-by: David Roberts <david@koha-ptfs.co.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
koha-tmpl/opac-tmpl/lib/emoji-picker/js/emoji-picker-all.min.js [new file with mode: 0644]