All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.butterfaces-js.butterfaces-disableElements.jquery.js Maven / Gradle / Ivy

(function ($) {
    $.fn.butterDisableElements = function () {

        return this.each(function () {
            var $originalElement = $(this);

            var $overlay = $('');
            $overlay.offset($originalElement.offset());
            $overlay.width($originalElement.outerWidth());
            $overlay.height($originalElement.outerHeight());
            // IE overrides css position so set it here
            $overlay.css({'position':'absolute'});

            if ($overlay.height() > 0 && $overlay.width() > 0) {
                $("body").append($overlay);
                $overlay.show();
            }
        });
    };

    $.fn.butterEnableElements = function () {

        return this.each(function () {
            $(".butter-component-link-overlay").fadeOut(300, function() {
                $(this).remove();
            });
        });
    };
}(jQuery));




© 2015 - 2025 Weber Informatics LLC | Privacy Policy