diff --git a/src/Umbraco.Web.UI.Client/lib/umbraco/compat.js b/src/Umbraco.Web.UI.Client/lib/umbraco/compat.js deleted file mode 100644 index a7c0b32938..0000000000 --- a/src/Umbraco.Web.UI.Client/lib/umbraco/compat.js +++ /dev/null @@ -1,47 +0,0 @@ -/* contains random bits and pieces we neede to make the U6 UI behave */ - -(function ($) { - - $(document).ready(function () { - scaleScrollables("body"); - - $(window).bind("resize", function () { - scaleScrollables("body"); - }); - - $("body").click(function (event) { - var el = event.target.nodeName; - var els = ["INPUT","A","BUTTON"]; - - if(els.indexOf(el) >= 0){return;} - - var parents = $(event.target).parents("a,button"); - if(parents.length > 0){ - return; - } - - var click = $(event.target).attr('onClick'); - if(click){ - return; - } - - - UmbClientMgr.closeModalWindow(undefined); - }); - }); - - function scaleScrollables(selector) { - $(".umb-scrollable").each(function() { - var el = jQuery(this); - var totalOffset = 0; - var offsety = el.data("offset-y"); - - if (offsety != undefined) - totalOffset += offsety; - - el.height($(window).height() - (el.offset().top + totalOffset)); - }); - } - - -})(jQuery); \ No newline at end of file