Adds body click detection to legacy pages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user