[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
Tue Jul 11 18:49:22 CEST 2023


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

--- Comment #151 from Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com> ---
Created attachment 153331
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=153331&action=edit
Bug 27378: Stop the codemirror editor and delete confirmation 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.

Similarly, the delete confirmation was dupliacting for the same reason. This
has also been resolved.

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


More information about the Koha-bugs mailing list