(function () {
    var c = $j.ui.tabs.prototype._tabify; $j.extend($j.ui.tabs.prototype, { _tabify: function () {
        var a = this; c.apply(this, arguments); a.options.closable === true && this.lis.filter(function () { return $j("span.ui-icon-circle-close", this).length === 0 }).each(function () {
            $j(this).append('<a href="#" class="float-right"><span class="ui-icon ui-icon-circle-close"></span></a>').find("a:last").hover(function () { $j(this).css("cursor", "pointer") }, function () { $j(this).css("cursor", "default") }).click(function () {
                var b = a.lis.index($j(this).parent());
                if (b > -1) { if (false === a._trigger("closableClick", null, a._ui($j(a.lis[b]).find("a")[0], a.panels[b]))) return; a.remove(b) } return false
            }).end()
        })
    } 
    })
})(jQuery);
