From 378a0d7f74555851a125c2cc8cb9e9fc6b5a057f Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Thu, 2 Aug 2018 12:41:58 -0500 Subject: [PATCH] issue: IE Select2 Target This addresses an issue where Microsoft IE 11 apparently does not like `event.target` syntax in javascript and breaks the Canned Response Select2. --- scp/js/scp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scp/js/scp.js b/scp/js/scp.js index e9ab63ef3..085ae525a 100644 --- a/scp/js/scp.js +++ b/scp/js/scp.js @@ -195,7 +195,7 @@ var scp_prep = function() { $('form select#cannedResp').select2({width: '300px'}); $('form select#cannedResp').on('select2:opening', function (e) { - var redactor = $('.richtext', e.target.closest('form')).data('redactor'); + var redactor = $('.richtext', $(this).closest('form')).data('redactor'); if (redactor) redactor.selection.save(); }); -- GitLab