Social: Fix bug in CKEditor when adding link or image - refs BT#17928

pull/3643/head
Angel Cubas 5 years ago committed by GitHub
parent 515d07cc09
commit bc49a6e295
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      main/social/group_view.php

@ -76,6 +76,17 @@ function add_image_form() {
} }
} }
$.fn.modal.Constructor.prototype.enforceFocus = function() {
modal_this = this
$(document).on("focusin.modal", function (e) {
if (modal_this.$element[0] !== e.target && !modal_this.$element.has(e.target).length
&& !$(e.target.parentNode).hasClass("cke_dialog_ui_input_select")
&& !$(e.target.parentNode).hasClass("cke_dialog_ui_input_text")) {
modal_this.$element.focus()
}
})
};
</script>'; </script>';
$allowed_views = ['mygroups', 'newest', 'pop']; $allowed_views = ['mygroups', 'newest', 'pop'];

Loading…
Cancel
Save