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

Version Path
svn_wc_tree-0.0.10 svn_wc_tree/js/source/plugins/jquery.tree.themeroller.js
svn_wc_tree-0.0.9 svn_wc_tree/js/source/plugins/jquery.tree.themeroller.js
svn_wc_tree-0.0.8 svn_wc_tree/js/source/plugins/jquery.tree.themeroller.js
svn_wc_tree-0.0.7 svn_wc_tree/js/source/plugins/jquery.tree.themeroller.js
svn_wc_tree-0.0.6 svn_wc_tree/js/source/plugins/jquery.tree.themeroller.js
tiny_cms-0.2.10 generators/tiny_cms_assets/templates/javascripts/jquery-tree/jquery-tree-plugins/jquery.tree.themeroller.js
tiny_cms-0.2.8 generators/tiny_cms_assets/templates/javascripts/jquery-tree/jquery-tree-plugins/jquery.tree.themeroller.js
svn_wc_tree-0.0.5 svn_wc_tree/js/source/plugins/jquery.tree.themeroller.js
tiny_cms-0.2.6 generators/tiny_cms_assets/templates/javascripts/jquery-tree/jquery-tree-plugins/jquery.tree.themeroller.js
tiny_cms-0.2.5 generators/tiny_cms_assets/templates/javascripts/jquery-tree/jquery-tree-plugins/jquery.tree.themeroller.js
tiny_cms-0.2.4 generators/tiny_cms_assets/templates/javascripts/jquery-tree/jquery-tree-plugins/jquery.tree.themeroller.js
tiny_cms-0.2.3 generators/tiny_cms_assets/templates/javascripts/jquery-tree/jquery-tree-plugins/jquery.tree.themeroller.js
tiny_cms-0.2.2 generators/tiny_cms_assets/templates/javascripts/jquery-tree/jquery-tree-plugins/jquery.tree.themeroller.js
tiny_cms-0.2.1 generators/tiny_cms_assets/templates/javascripts/jquery-tree/jquery-tree-plugins/jquery.tree.themeroller.js
tiny_cms-0.2.0 generators/tiny_cms_assets/templates/javascripts/jquery-tree/jquery-tree-plugins/jquery.tree.themeroller.js
tiny_cms-0.1.1 generators/tiny_cms_assets/templates/javascripts/jquery-tree/jquery-tree-plugins/jquery.tree.themeroller.js
tiny_cms-0.1.0 generators/tiny_cms_assets/templates/javascripts/jquery-tree/jquery-tree-plugins/jquery.tree.themeroller.js
svn_wc_tree-0.0.3 svn_wc_tree/js/source/plugins/jquery.tree.themeroller.js
svn_wc_tree-0.0.2 svn_wc_tree/js/source/plugins/jquery.tree.themeroller.js