Merge pull request #1793 from Phosworks/U4-8418

Fixes jquery selector bug, http://issues.umbraco.org/issue/U4-8418
This commit is contained in:
Claus
2017-03-20 14:43:43 +01:00
committed by GitHub

View File

@@ -163,13 +163,13 @@ angular.module('umbraco.directives')
}
// ignore clicks on dialog from old dialog service
var oldDialog = $(el).parents("#old-dialog-service");
var oldDialog = $(event.target).parents("#old-dialog-service");
if (oldDialog.length === 1) {
return;
}
// ignore clicks in tinyMCE dropdown(floatpanel)
var floatpanel = $(el).parents(".mce-floatpanel");
var floatpanel = $(event.target).closest(".mce-floatpanel");
if (floatpanel.length === 1) {
return;
}