Permalink
Browse files

Make sure we only attach to links that are interesting to us

  • Loading branch information...
flack committed Jul 11, 2018
1 parent 6170858 commit 2b4a93cee6c7d5fdbad824227673dbe0e0087111
Showing with 2 additions and 2 deletions.
  1. +2 −2 static/midcom.helper.imagepopup/functions.js
@@ -1,7 +1,7 @@
$(document).ready(function()
{
$('.content-area')
.on('click', 'a', function(event) {
.on('click', 'a[href]', function(event) {
event.preventDefault();
var url = $(this).attr('href'),
title = '';
@@ -13,7 +13,7 @@ $(document).ready(function()
parent.tinymce.activeEditor.windowManager.getParams().oninsert(url, {alt: title});
parent.tinymce.activeEditor.windowManager.close();
})
.on('hover', 'a', function() {
.on('hover', 'a[href]', function() {
$(this).prop('title', 'Click to insert');
});

0 comments on commit 2b4a93c

Please sign in to comment.