<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Perch Admin collapsable menu</title>
	<atom:link href="http://www.iamadtaylor.com/perch-admin-collapsable-menu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iamadtaylor.com/perch-admin-collapsable-menu/</link>
	<description>The portfolio and blog of Ad Taylor</description>
	<lastBuildDate>Mon, 24 May 2010 20:18:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ad Taylor</title>
		<link>http://www.iamadtaylor.com/perch-admin-collapsable-menu/#comment-121</link>
		<dc:creator>Ad Taylor</dc:creator>
		<pubDate>Tue, 08 Sep 2009 11:27:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamadtaylor.com/?p=225#comment-121</guid>
		<description>Thanks Christian, that is really great. I have changed the above code.
The pointer was a really nice touch and I am a little shocked I didn&#039;t notice I had killed the thead! Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks Christian, that is really great. I have changed the above code.<br />
The pointer was a really nice touch and I am a little shocked I didn&#8217;t notice I had killed the thead! Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Philippsen</title>
		<link>http://www.iamadtaylor.com/perch-admin-collapsable-menu/#comment-120</link>
		<dc:creator>Christian Philippsen</dc:creator>
		<pubDate>Tue, 08 Sep 2009 11:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.iamadtaylor.com/?p=225#comment-120</guid>
		<description>Hi Ad, thanks for this one! :)

I&#039;ve modified it a bit, so that the thead of the table would stay + a cursor hover on the page title.

&lt;strong&gt;Modified&lt;/strong&gt; (for my needs)
&lt;code&gt;
function pageTidy () {
	if($(&#039;td.page&#039;).length &gt; 1) {
		resetToTidy();
		$(&#039;.page span&#039;).hover(function() {
			$(this).css({ cursor: &#039;pointer&#039; });
		});
		$(&#039;.page span&#039;).click(function() {
			resetToTidy();
			$(this).parent(&#039;td&#039;).parent(&#039;tr&#039;).addClass(&#039;currentPage&#039;);
			$(&#039;.currentPage&#039;).children(&#039;td&#039;).show();
			$(&#039;.currentPage&#039;).nextAll().each(function(index) {
				if($(this).css(&#039;display&#039;) == &#039;table-row&#039;){
					return false;
				}
				$(this).show();
			});
		});
	}

}
function resetToTidy() {
	$(&#039;.d tbody tr&#039;).hide();
	$(&#039;.shared&#039;).parent(&#039;tr&#039;).show();
	$(&#039;.shared&#039;).parent(&#039;tr&#039;).nextAll().each(function(index) {
		if($(this).children(&#039;td&#039;).hasClass(&#039;page&#039;)) {
			return false;
		}
		$(this).show();
	});
	$(&#039;.d tr&#039;).removeClass(&#039;currentPage&#039;);
	$(&#039;.page&#039;).parent(&#039;tr&#039;).show();
	$(&#039;.page&#039;).siblings(&#039;td&#039;).hide();
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Ad, thanks for this one! :)</p>
<p>I&#8217;ve modified it a bit, so that the thead of the table would stay + a cursor hover on the page title.</p>
<p><strong>Modified</strong> (for my needs)<br />
<code><br />
function pageTidy () {<br />
	if($('td.page').length &gt; 1) {<br />
		resetToTidy();<br />
		$('.page span').hover(function() {<br />
			$(this).css({ cursor: 'pointer' });<br />
		});<br />
		$('.page span').click(function() {<br />
			resetToTidy();<br />
			$(this).parent('td').parent('tr').addClass('currentPage');<br />
			$('.currentPage').children('td').show();<br />
			$('.currentPage').nextAll().each(function(index) {<br />
				if($(this).css('display') == 'table-row'){<br />
					return false;<br />
				}<br />
				$(this).show();<br />
			});<br />
		});<br />
	}</p>
<p>}<br />
function resetToTidy() {<br />
	$('.d tbody tr').hide();<br />
	$('.shared').parent('tr').show();<br />
	$('.shared').parent('tr').nextAll().each(function(index) {<br />
		if($(this).children('td').hasClass('page')) {<br />
			return false;<br />
		}<br />
		$(this).show();<br />
	});<br />
	$('.d tr').removeClass('currentPage');<br />
	$('.page').parent('tr').show();<br />
	$('.page').siblings('td').hide();<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
