<?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 for Lucas Wojciechowski</title>
	<atom:link href="http://lucaswoj.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://lucaswoj.com</link>
	<description>web developer, student, and athlete</description>
	<lastBuildDate>Tue, 21 Dec 2010 12:14:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Comment on jQuery UI Nested Sortables 2 by MGiebsers</title>
		<link>http://lucaswoj.com/2010/01/jquery-ui-nested-sortables-2/comment-page-1/#comment-127</link>
		<dc:creator>MGiebsers</dc:creator>
		<pubDate>Tue, 21 Dec 2010 12:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://lucaswoj.com/?p=122#comment-127</guid>
		<description>While working with this great plugin I&#039;ve encountered a problem, when using the maxDepth setting it didn&#039;t correctly calculates the maxChildDepth value. In each level the maxChildDepth returns the same value.

The solution I wrote is probably not the best, but it&#039;s working, might be worth to share: 


// When dragging starts
start: function() {
	// Hide the original and initialize the placeholder ontop of the starting position
	$this.hide().after($placeholder);

	// Find the deepest nested child
	var maxChildDepth = 0;
	$this.find(settings.nestable).each(function() {
		var childDepth = 0;
							
		var parent = $(this);
		while (parent.attr(&quot;id&quot;) != $this.attr(&quot;id&quot;) &amp;&amp; parent.attr(&#039;id&#039;) != $root.attr(&quot;id&quot;)){
			if (parent.context.nodeName.toLowerCase() == settings.nestable.toLowerCase()){
				childDepth++;
			}
			parent = parent.parent();
		}
							
		childDepth = childDepth/2+1;
							
		if (childDepth &gt; maxChildDepth) {
			maxChildDepth = childDepth;
		}
	});
	$this.data(&quot;maxChildDepth&quot;, maxChildDepth);
	
						// Run a custom start function specitifed in the settings
						settings.start.apply(this);
					},</description>
		<content:encoded><![CDATA[<p>While working with this great plugin I&#8217;ve encountered a problem, when using the maxDepth setting it didn&#8217;t correctly calculates the maxChildDepth value. In each level the maxChildDepth returns the same value.</p>
<p>The solution I wrote is probably not the best, but it&#8217;s working, might be worth to share: </p>
<p>// When dragging starts<br />
start: function() {<br />
	// Hide the original and initialize the placeholder ontop of the starting position<br />
	$this.hide().after($placeholder);</p>
<p>	// Find the deepest nested child<br />
	var maxChildDepth = 0;<br />
	$this.find(settings.nestable).each(function() {<br />
		var childDepth = 0;</p>
<p>		var parent = $(this);<br />
		while (parent.attr(&#8220;id&#8221;) != $this.attr(&#8220;id&#8221;) &amp;&amp; parent.attr(&#8216;id&#8217;) != $root.attr(&#8220;id&#8221;)){<br />
			if (parent.context.nodeName.toLowerCase() == settings.nestable.toLowerCase()){<br />
				childDepth++;<br />
			}<br />
			parent = parent.parent();<br />
		}</p>
<p>		childDepth = childDepth/2+1;</p>
<p>		if (childDepth &gt; maxChildDepth) {<br />
			maxChildDepth = childDepth;<br />
		}<br />
	});<br />
	$this.data(&#8220;maxChildDepth&#8221;, maxChildDepth);</p>
<p>						// Run a custom start function specitifed in the settings<br />
						settings.start.apply(this);<br />
					},</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Classynote by Lauren Bittrich</title>
		<link>http://lucaswoj.com/2010/01/classynote/comment-page-1/#comment-124</link>
		<dc:creator>Lauren Bittrich</dc:creator>
		<pubDate>Sat, 23 Oct 2010 21:17:33 +0000</pubDate>
		<guid isPermaLink="false">http://lucaswoj.com/?p=130#comment-124</guid>
		<description>I think everyone is excited to see this up and running in the near future.</description>
		<content:encoded><![CDATA[<p>I think everyone is excited to see this up and running in the near future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery UI Nested Sortables 2 by lucas</title>
		<link>http://lucaswoj.com/2010/01/jquery-ui-nested-sortables-2/comment-page-1/#comment-121</link>
		<dc:creator>lucas</dc:creator>
		<pubDate>Thu, 22 Jul 2010 15:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://lucaswoj.com/?p=122#comment-121</guid>
		<description>I actually built this for an entirely AJAX setup where the &quot;drop&quot; event would fire a POST request to the server containing some identifying information about the draggable (its ID), its parent element, and its position within the parent element with $(this).prevUntil().length. I could probably get around to writing a formal serialization function for the script if I find some time...</description>
		<content:encoded><![CDATA[<p>I actually built this for an entirely AJAX setup where the &#8220;drop&#8221; event would fire a POST request to the server containing some identifying information about the draggable (its ID), its parent element, and its position within the parent element with $(this).prevUntil().length. I could probably get around to writing a formal serialization function for the script if I find some time&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery UI Nested Sortables 2 by Jurjen</title>
		<link>http://lucaswoj.com/2010/01/jquery-ui-nested-sortables-2/comment-page-1/#comment-120</link>
		<dc:creator>Jurjen</dc:creator>
		<pubDate>Thu, 22 Jul 2010 14:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://lucaswoj.com/?p=122#comment-120</guid>
		<description>Would you care to give any hint on how to serialize the order of items?</description>
		<content:encoded><![CDATA[<p>Would you care to give any hint on how to serialize the order of items?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery UI Nested Sortables 2 by Mr Speaker</title>
		<link>http://lucaswoj.com/2010/01/jquery-ui-nested-sortables-2/comment-page-1/#comment-119</link>
		<dc:creator>Mr Speaker</dc:creator>
		<pubDate>Wed, 07 Jul 2010 13:01:17 +0000</pubDate>
		<guid isPermaLink="false">http://lucaswoj.com/?p=122#comment-119</guid>
		<description>Great little plugin - thanks for your effort! Just one small issue I encountered - my nestedSortable list was in a dialog that was positioned in the middle of the screen - which meant that ui.position != ui.offset:

I had to change all instances of ui.position to ui.offset to get it to correctly detect where the dragged element currently was (eg $item.offset().top &lt; ui.position.top became $item.offset().top &lt; ui.offset.top).

Just thought I&#039;d share that in case anyone else had the same issue.</description>
		<content:encoded><![CDATA[<p>Great little plugin &#8211; thanks for your effort! Just one small issue I encountered &#8211; my nestedSortable list was in a dialog that was positioned in the middle of the screen &#8211; which meant that ui.position != ui.offset:</p>
<p>I had to change all instances of ui.position to ui.offset to get it to correctly detect where the dragged element currently was (eg $item.offset().top &lt; ui.position.top became $item.offset().top &lt; ui.offset.top).</p>
<p>Just thought I&#8217;d share that in case anyone else had the same issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery UI Nested Sortables 2 by Juerg</title>
		<link>http://lucaswoj.com/2010/01/jquery-ui-nested-sortables-2/comment-page-1/#comment-113</link>
		<dc:creator>Juerg</dc:creator>
		<pubDate>Thu, 10 Jun 2010 15:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://lucaswoj.com/?p=122#comment-113</guid>
		<description>I&#039;m having weird problems with IE8. Take the example from http://demo.lucaswoj.com/sortables/. Drag the second paragraph into the first one (it becomes red). Now take the red paragraph and try to reorder =&gt; strange... It takes both paragraphs and if you drop of, the red one has gone...</description>
		<content:encoded><![CDATA[<p>I&#8217;m having weird problems with IE8. Take the example from <a href="http://demo.lucaswoj.com/sortables/" rel="nofollow">http://demo.lucaswoj.com/sortables/</a>. Drag the second paragraph into the first one (it becomes red). Now take the red paragraph and try to reorder =&gt; strange&#8230; It takes both paragraphs and if you drop of, the red one has gone&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery UI Nested Sortables 2 by max</title>
		<link>http://lucaswoj.com/2010/01/jquery-ui-nested-sortables-2/comment-page-1/#comment-112</link>
		<dc:creator>max</dc:creator>
		<pubDate>Thu, 10 Jun 2010 14:55:51 +0000</pubDate>
		<guid isPermaLink="false">http://lucaswoj.com/?p=122#comment-112</guid>
		<description>Hello,
I cannot drag an object into another that is beyond the depth 1...
Is that an issue?
Have you a solution?
Thanks,
max</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I cannot drag an object into another that is beyond the depth 1&#8230;<br />
Is that an issue?<br />
Have you a solution?<br />
Thanks,<br />
max</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery UI Nested Sortables 2 by lucas</title>
		<link>http://lucaswoj.com/2010/01/jquery-ui-nested-sortables-2/comment-page-1/#comment-107</link>
		<dc:creator>lucas</dc:creator>
		<pubDate>Fri, 21 May 2010 11:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://lucaswoj.com/?p=122#comment-107</guid>
		<description>I see your use case Brett. I&#039;ll see what I can do tonight to fix the nesting bug and dynamically apply a &quot;has children&quot; class.</description>
		<content:encoded><![CDATA[<p>I see your use case Brett. I&#8217;ll see what I can do tonight to fix the nesting bug and dynamically apply a &#8220;has children&#8221; class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery UI Nested Sortables 2 by Brett</title>
		<link>http://lucaswoj.com/2010/01/jquery-ui-nested-sortables-2/comment-page-1/#comment-106</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Fri, 21 May 2010 05:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://lucaswoj.com/?p=122#comment-106</guid>
		<description>New Request. 

Lucas, Would it be possible to have every LI either have a class of &quot;haschildren&quot; added or removed based on if this LI has any children?

Per your suggestion above, CSS wasn&#039;t able to work:
ul#task-container li input[type=checkbox] {display: none;}
#task-container li ul li input[type=checkbox] {display: inline;}

The reason being is that CSS hides the check box for root items that don&#039;t have children. I&#039;m not sure how CSS could solve for this scenario without a class set on root. I&#039;d love to hear your thoughts.

Thanks, B</description>
		<content:encoded><![CDATA[<p>New Request. </p>
<p>Lucas, Would it be possible to have every LI either have a class of &#8220;haschildren&#8221; added or removed based on if this LI has any children?</p>
<p>Per your suggestion above, CSS wasn&#8217;t able to work:<br />
ul#task-container li input[type=checkbox] {display: none;}<br />
#task-container li ul li input[type=checkbox] {display: inline;}</p>
<p>The reason being is that CSS hides the check box for root items that don&#8217;t have children. I&#8217;m not sure how CSS could solve for this scenario without a class set on root. I&#8217;d love to hear your thoughts.</p>
<p>Thanks, B</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery UI Nested Sortables 2 by Brett</title>
		<link>http://lucaswoj.com/2010/01/jquery-ui-nested-sortables-2/comment-page-1/#comment-105</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Fri, 21 May 2010 00:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://lucaswoj.com/?p=122#comment-105</guid>
		<description>@Lucas, that&#039;s fantastic thanks!</description>
		<content:encoded><![CDATA[<p>@Lucas, that&#8217;s fantastic thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

