Tooltip/Source/tooltip-1.1.js
function () {
            // Remove the other tooltips
            // if it was requested.
            if (this.reset !== false)
                this.resetTooltip();
            // Create the tooltip elements
            var container = $("<div>").attr({
                "class": "error-label-container"
            }).appendTo(this.settings.element);
            var arrow = $("<div>").attr({
                "class": "error-label-arrow-" + this.settings.arrow
            }).appendTo(container);
            var label = $("<div>").attr({
                "class": "error-label"
            }).html(this.settings.label).appendTo(container);
            // Set the red glow around the input
            this.settings.element.addClass("tooltip-active");
            // If the fadeout option is set, then
            // fade it out after the given time.
            // Otherwise, make it clickable to let
            // the user remove it.
            if ($.isNumeric(this.settings.fadeOut))
                container.delay(this.settings.fadeOut).fadeOut("slow");
            label.click(function () {
                $(this).parent().remove();
            });
        }
function () {
            // Remove the other tooltips
            // if it was requested.
            if (this.reset !== false)
                this.resetTooltip();
            // Create the tooltip elements
            var container = $("<div>").attr({
                "class": "error-label-container"
            }).appendTo(this.settings.element);
            var arrow = $("<div>").attr({
                "class": "error-label-arrow-" + this.settings.arrow
            }).appendTo(container);
            var label = $("<div>").attr({
                "class": "error-label"
            }).html(this.settings.label).appendTo(container);
            // Set the red glow around the input
            this.settings.element.addClass("tooltip-active");
            // If the fadeout option is set, then
            // fade it out after the given time.
            // Otherwise, make it clickable to let
            // the user remove it.
            if ($.isNumeric(this.settings.fadeOut))
                container.delay(this.settings.fadeOut).fadeOut("slow");
            label.click(function () {
                $(this).parent().remove();
            });
        }
function ( ) { // Remove the other tooltips // if it was requested. if ( this . reset !== false ) this . resetTooltip ( ) ; // Create the tooltip elements var container = $ ( "<div>" ) . attr ( { "class" : "error-label-container" } ) . appendTo ( this . settings . element ) ; var arrow = $ ( "<div>" ) . attr ( { "class" : "error-label-arrow-" + this . settings . arrow } ) . appendTo ( container ) ; var label = $ ( "<div>" ) . attr ( { "class" : "error-label" } ) . html ( this . settings . label ) . appendTo ( container ) ; // Set the red glow around the input this . settings . element . addClass ( "tooltip-active" ) ; // If the fadeout option is set, then // fade it out after the given time. // Otherwise, make it clickable to let // the user remove it. if ( $ . isNumeric ( this . settings . fadeOut ) ) container . delay ( this . settings . fadeOut ) . fadeOut ( "slow" ) ; label . click ( function ( ) { $ ( this ) . parent ( ) . remove ( ) ; } ) ; }
Create the tooltip
Create the tooltip