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

--- Comment #118 from Matt Blenkinsop <matt.blenkin...@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to