Adds body click detection to legacy pages

This commit is contained in:
Per Ploug Krogslund
2013-07-05 14:13:40 +02:00
parent 699f76282d
commit 63323c494f

View File

@@ -5,6 +5,15 @@ jQuery(document).ready(function () {
jQuery(window).bind("resize", function () {
scaleScrollables("body");
});
jQuery("body").click(function(event) {
var el = event.target.nodeName;
var pEl = event.target.parentElement.nodeName;
if(el != "A" && el != "BUTTON" && pEl != "A" && pEl != "BUTTON"){
UmbClientMgr.closeModalWindow(undefined);
}
});
});