Sha256: 935f50d97558f33c2516c5e865abace9564f19383d3a6ca593604fd811cb892e
Contents?: true
Size: 1.51 KB
Versions: 19
Compression:
Stored size: 1.51 KB
Contents
(function ($) { $.extend($.tree.plugins, { "themeroller" : { defaults : { }, callbacks : { oninit : function (t) { if(this.settings.ui.theme_name != "themeroller") return; var opts = $.extend(true, {}, $.tree.plugins.themeroller.defaults, this.settings.plugins.themeroller); this.container.addClass("ui-widget ui-widget-content"); $("#" + this.container.attr("id") + " li a").live("mouseover", function () { $(this).addClass("ui-state-hover"); }); $("#" + this.container.attr("id") + " li a").live("mouseout", function () { $(this).removeClass("ui-state-hover"); }); }, onparse : function (s, t) { if(this.settings.ui.theme_name != "themeroller") return; var opts = $.extend(true, {}, $.tree.plugins.themeroller.defaults, this.settings.plugins.themeroller); return $(s).find("a").not(".ui-state-default").addClass("ui-state-default").children("ins").addClass("ui-icon").end().end().end(); }, onselect : function(n, t) { if(this.settings.ui.theme_name != "themeroller") return; var opts = $.extend(true, {}, $.tree.plugins.themeroller.defaults, this.settings.plugins.themeroller); $(n).children("a").addClass("ui-state-active"); }, ondeselect : function(n, t) { if(this.settings.ui.theme_name != "themeroller") return; var opts = $.extend(true, {}, $.tree.plugins.themeroller.defaults, this.settings.plugins.themeroller); $(n).children("a").removeClass("ui-state-active"); } } } }); })(jQuery);
Version data entries
19 entries across 19 versions & 2 rubygems