[Koha-bugs] [Bug 27378] Enable compliance with EU Cookie Legislation via cookie consent

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 26 14:19:03 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27378

--- Comment #118 from Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com> ---
Created attachment 151751
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151751&action=edit
Bug 27378: Stop the codemirror editor from duplicating

Previously, if the "Add new code button" was clicked in the CookieConsentedJS
editor, the original entry would have duplicated CodeMirror editors.
This was exponential, i.e adding two new lines would result in three codemirror
editors appearing on the first entry, two on the second and so on.
The click event was not being applied properly and was being applied to every
element with the .expand-textarea class, rather than specifically the new
elements being created. The addExpandHandler function now loops through each
element individually and decides whether to apply the click event handler.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list