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

Sam Lau <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #151751|0                           |1
        is obsolete|                            |

--- Comment #139 from Sam Lau <[email protected]> ---
Created attachment 151842
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151842&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.

Signed-off-by: Sam Lau <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
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