<?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: Updating My Scheduler App with More CSS and JavaScript Goodness</title>
	<atom:link href="http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/feed/" rel="self" type="application/rss+xml" />
	<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/</link>
	<description>My name&#039;s JR. I write about stuff.</description>
	<lastBuildDate>Tue, 17 Apr 2012 14:43:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: JR</title>
		<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/comment-page-1/#comment-196</link>
		<dc:creator>JR</dc:creator>
		<pubDate>Sat, 04 Feb 2012 05:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://zarjay.net/?p=599#comment-196</guid>
		<description>The code wasn&#039;t designed to store the schedule data or save it to a database, but it could be modified to do so. The code is &lt;a href=&quot;https://bitbucket.org/zarjay/scheduler/src&quot; rel=&quot;nofollow&quot;&gt;freely available&lt;/a&gt; if you&#039;d like to give it a shot. Otherwise, these &lt;a href=&quot;http://www.web-delicious.com/4-best-javascript-jquery-event-calendar-planner-scheduler/&quot; rel=&quot;nofollow&quot;&gt;jQuery event plugins&lt;/a&gt; may suit your needs better.

I may update the scheduler app with some more features eventually, but it&#039;s very low on my priority list right now. Although if you&#039;d like, feel free to make &lt;a href=&quot;https://bitbucket.org/zarjay/scheduler/issues/new&quot; rel=&quot;nofollow&quot;&gt;a feature request&lt;/a&gt;. Hope that helps!</description>
		<content:encoded><![CDATA[<p>The code wasn&#8217;t designed to store the schedule data or save it to a database, but it could be modified to do so. The code is <a href="https://bitbucket.org/zarjay/scheduler/src" rel="nofollow">freely available</a> if you&#8217;d like to give it a shot. Otherwise, these <a href="http://www.web-delicious.com/4-best-javascript-jquery-event-calendar-planner-scheduler/" rel="nofollow">jQuery event plugins</a> may suit your needs better.</p>
<p>I may update the scheduler app with some more features eventually, but it&#8217;s very low on my priority list right now. Although if you&#8217;d like, feel free to make <a href="https://bitbucket.org/zarjay/scheduler/issues/new" rel="nofollow">a feature request</a>. Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo Quicoli</title>
		<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/comment-page-1/#comment-186</link>
		<dc:creator>Paulo Quicoli</dc:creator>
		<pubDate>Wed, 18 Jan 2012 10:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://zarjay.net/?p=599#comment-186</guid>
		<description>Your Scheduler is great! It fits some of my needs, but I don&#039;t know about others. For example, is there a way to retrieve entries from a database and also, to save all entries to a database? I&#039;m not an javascript expert. Is there events like &quot;ondeleteentry&quot; or &quot;onaddentry&quot;? 

Thanks for your great work!</description>
		<content:encoded><![CDATA[<p>Your Scheduler is great! It fits some of my needs, but I don&#8217;t know about others. For example, is there a way to retrieve entries from a database and also, to save all entries to a database? I&#8217;m not an javascript expert. Is there events like &#8220;ondeleteentry&#8221; or &#8220;onaddentry&#8221;? </p>
<p>Thanks for your great work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JR</title>
		<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/comment-page-1/#comment-185</link>
		<dc:creator>JR</dc:creator>
		<pubDate>Fri, 13 Jan 2012 01:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://zarjay.net/?p=599#comment-185</guid>
		<description>Sorry, my scheduler app doesn&#039;t really support something like that. Although, maybe &lt;a href=&quot;http://arshaw.com/fullcalendar/ &quot; rel=&quot;nofollow&quot;&gt;this jQuery plugin&lt;/a&gt; could suit your needs better. :)</description>
		<content:encoded><![CDATA[<p>Sorry, my scheduler app doesn&#8217;t really support something like that. Although, maybe <a href="http://arshaw.com/fullcalendar/ " rel="nofollow">this jQuery plugin</a> could suit your needs better. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Electro_caine</title>
		<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/comment-page-1/#comment-184</link>
		<dc:creator>Electro_caine</dc:creator>
		<pubDate>Tue, 10 Jan 2012 02:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://zarjay.net/?p=599#comment-184</guid>
		<description>Hi....Thanks for this nice tuts....if i needed to display the scheduler in month or year view???
...any idea about how to do that?</description>
		<content:encoded><![CDATA[<p>Hi&#8230;.Thanks for this nice tuts&#8230;.if i needed to display the scheduler in month or year view???<br />
&#8230;any idea about how to do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JR</title>
		<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/comment-page-1/#comment-183</link>
		<dc:creator>JR</dc:creator>
		<pubDate>Wed, 13 Jul 2011 02:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://zarjay.net/?p=599#comment-183</guid>
		<description>Sorry, I renamed the directory since then. Here&#039;s a newer link:
http://code.zarjay.net/scheduler/src</description>
		<content:encoded><![CDATA[<p>Sorry, I renamed the directory since then. Here&#8217;s a newer link:<br />
<a href="http://code.zarjay.net/scheduler/src" rel="nofollow">http://code.zarjay.net/scheduler/src</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JR</title>
		<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/comment-page-1/#comment-182</link>
		<dc:creator>JR</dc:creator>
		<pubDate>Wed, 13 Jul 2011 02:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://zarjay.net/?p=599#comment-182</guid>
		<description>Sorry, I don&#039;t have any plans to WordPress-ify it :)</description>
		<content:encoded><![CDATA[<p>Sorry, I don&#8217;t have any plans to WordPress-ify it :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oscil8</title>
		<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/comment-page-1/#comment-181</link>
		<dc:creator>oscil8</dc:creator>
		<pubDate>Tue, 12 Jul 2011 01:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://zarjay.net/?p=599#comment-181</guid>
		<description>@anash go back a directory i.e. https://bitbucket.org/zarjay and work your way to the source from there</description>
		<content:encoded><![CDATA[<p>@anash go back a directory i.e. <a href="https://bitbucket.org/zarjay" rel="nofollow">https://bitbucket.org/zarjay</a> and work your way to the source from there</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anash</title>
		<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/comment-page-1/#comment-180</link>
		<dc:creator>anash</dc:creator>
		<pubDate>Fri, 27 May 2011 00:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://zarjay.net/?p=599#comment-180</guid>
		<description>nice app how do i get the code its not available on the bitbucket link you sent</description>
		<content:encoded><![CDATA[<p>nice app how do i get the code its not available on the bitbucket link you sent</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Taylor</title>
		<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/comment-page-1/#comment-179</link>
		<dc:creator>Matthew Taylor</dc:creator>
		<pubDate>Sun, 15 May 2011 19:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://zarjay.net/?p=599#comment-179</guid>
		<description> Any chance we can get this as a WordPress plugin?  :)</description>
		<content:encoded><![CDATA[<p> Any chance we can get this as a WordPress plugin?  :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wul142</title>
		<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/comment-page-1/#comment-178</link>
		<dc:creator>Wul142</dc:creator>
		<pubDate>Fri, 06 May 2011 23:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://zarjay.net/?p=599#comment-178</guid>
		<description>hi man i really like your code. also i changed your code a bit tomeet my requirement. However, it didnt work somehow for deleting individual item.

here is my code for scheduler.js


$(function() {

    

    // Initialize some jQuery objects

    var 

        $error = $(&#039;#error&#039;),

        $info = $(&#039;#info&#039;),

        $entry_section = $(&#039;#add-entry-section&#039;),

        $entry_name = $(&#039;#entry-name&#039;),

        $schedule = $(&#039;#schedule&#039;),

        $clone = $(&#039;#clone&#039;),

        $generate = $(&#039;#generate&#039;);

    

    // Start the setup

    init();

    

    // Setup code

    function init() {

        // Hide Stuff

        $error.hide();

        $info.hide();


        // Make the table cells selectable

        $schedule.selectable({

            filter: &#039;td&#039;

        });


        // Whenever entries are created, let them be deletable

        $(&#039;.deletable&#039;).live(&#039;click&#039;, removeEntry);

        

        // Activate buttons

        //$(&#039;#add-entry&#039;).click(openEntrySection);


        

        $(&#039;#save&#039;).click(addEntries);

        $(&#039;#cancel&#039;).click(closeEntrySection);

        $(&#039;#add-entry-form&#039;).submit(addEntries);

        $(&#039;#add-row&#039;)

            .click(addRow)

            .hover(addRowHighlight, addRowUndoHighlight);

        $(&#039;#remove-row&#039;)

            .click(removeRow)

            .hover(removeRowHighlight, removeRowUndoHighlight);

        $(&#039;#remove-entries&#039;)

            .click(removeEntries)

            .hover(removeEntriesHighlight, removeEntriesUndoHighlight);

        $(&#039;#generate&#039;).click(generateSchedule);

        


        

        // Prevent text selection on double-click

        $(&#039;.actions a&#039;)

            .attr(&#039;unselectable&#039;,&#039;on&#039;)

            .css(&#039;MozUserSelect&#039;,&#039;none&#039;)

            .bind(&#039;selectstart.ui&#039;, function() {

                return false;

            });

    }

    

    // Add a row to the table

    function addRow() {

        $schedule.find(&#039;tbody&#039;).append(&#039;&#039;);

        addRowUndoHighlight();

        addRowHighlight();

        return false;

    }

    

    // Highlight bottom row of table to cue user of add action

    function addRowHighlight() {

        $schedule.find(&#039;tbody tr:last-child *&#039;).addClass(&#039;adding&#039;);

    }

    

    // Undo highlight

    function addRowUndoHighlight() {

        $schedule.find(&#039;tbody tr *&#039;).removeClass(&#039;adding&#039;);

    }

    

    // Delete last row from the table

    function removeRow() {

        $schedule.find(&#039;tbody tr&#039;).last().remove();

        removeRowUndoHighlight();

        removeRowHighlight();

        return false;

    }

    

    // Highlight row to be deleted to cue user of delete action

    function removeRowHighlight() {

        $schedule.find(&#039;tbody tr:last-child *&#039;).addClass(&#039;deleting&#039;);

    }

    

    // Undo highlight

    function removeRowUndoHighlight() {

        $schedule.find(&#039;tbody tr *&#039;).removeClass(&#039;deleting&#039;);

    }

    

    // Show &quot;add entry&quot; section

    function openEntrySection() {

        // Prevent entry deletion when section is open

        $schedule.find(&#039;.entry&#039;).removeClass(&#039;deletable&#039;).removeAttr(&#039;title&#039;);

        

        // Show section

        $entry_section.slideDown(function() {

            $entry_name.focus();

        });

        

        // Make the table cells selectable

        $schedule.selectable({

            filter: &#039;td&#039;

        });

        

        return false;

    }

    

    // Hide &quot;add entry&quot; section

    function closeEntrySection() {

        

        // Get rid of selectables

        $schedule.selectable(&#039;destroy&#039;);

        $(&#039;.ui-selected&#039;).removeClass(&#039;ui-selected&#039;);

        

        

        // Make entries deletable

        $schedule.find(&#039;.entry&#039;).addClass(&#039;deletable&#039;).attr(&#039;title&#039;,&#039;Click to delete&#039;);


        // Make the table cells selectable

        $schedule.selectable({

            filter: &#039;td&#039;

        });

        


        return false;

    }

    

    // Add entries to table

    function addEntries() {

        // Get the input text

        var entryValue = &quot;OK&quot;;;

        entryValue = $.trim(entryValue);

        

        // Get selected table cells

        var $selected = $(&#039;.ui-selected&#039;);

        

        if (!entryValue) {

            $error.message(&quot;&quot;, &quot;You didn&#039;t enter a name.&quot;);

        } else if (!$selected.length) {

            $error.message(&quot;&quot;, &quot;You didn&#039;t select anything.&quot;);

        } else {

            // Add entry to each selected cell

            var entry = &#039;&#039; + entryValue + &#039;&#039;;

            $selected.append(entry);

            

            // Close the section

            //closeEntrySection();



        $(&#039;.ui-selected&#039;).removeClass(&#039;ui-selected&#039;);

            

            $info.message(&quot;&quot;, entryValue + &quot; has been added.&quot;);

        }

        


        return false;

    }


    

    // Delete entry from the table

    function removeEntry() {

        $(this).effect(&#039;explode&#039;, 500, function() {

            $(this).remove();

        });

    }

    

    // Delete all entries from the table

    function removeEntries() {

        // Find all entries

        var $entries = $schedule.find(&#039;.entry&#039;);

        

        // Delete them

        $entries.fadeOut(function() {

            $entries.remove();

        });

        

        return false;

    }

    

    // Highlight entries to be deleted to cue user of deletion action

    function removeEntriesHighlight() {

        $(&#039;.entry&#039;).addClass(&#039;deleting&#039;);

    }

    

    // Undo highlight

    function removeEntriesUndoHighlight() {

        $(&#039;.entry&#039;).removeClass(&#039;deleting&#039;);

    }


    

    // Generate a schedule from the table

    function generateSchedule() {

        // Clone the table

        $clone.empty()

        $schedule.clone().removeAttr(&#039;id&#039;).removeClass(&#039;ui-selectable&#039;).addClass(&#039;cloned&#039;).appendTo($clone);

        

        // Remove input fields

        // Prevent entries from deletion

        // Display random entry for each cell

        $clone

            .find(&#039;input&#039;).each(function(index) {

                var text = $(this).val();

                $(this).replaceWith(&#039;&#039; + text + &#039;&#039;);

            }).end()

            .find(&#039;.deletable&#039;).removeClass(&#039;deletable&#039;).removeAttr(&#039;title&#039;).end()

            .find(&#039;.ui-selectee&#039;).removeClass(&#039;ui-selectee&#039;).end()

            .find(&#039;.ui-selected&#039;).removeClass(&#039;ui-selected&#039;).end()

            .find(&#039;.cloned tbody td&#039;).randomChild();

            

        return false;

    }


});


;(function($) {

    /* 

     * Random Child (0.1)

     * by Mike Branski (www.leftrightdesigns.com)

     * mikebranski@gmail.com

     *

     * Copyright (c) 2008 Mike Branski (www.leftrightdesigns.com)

     * Licensed under GPL (www.leftrightdesigns.com/library/jquery/randomchild/gpl.txt)

     */

    $.fn.randomChild = function(settings) {

        return this.each(function(){

            var c = $(this).children().length;

            var r = Math.ceil(Math.random() * c);

            $(this).children().hide().parent().children(&#039;:nth-child(&#039; + r + &#039;)&#039;).show();

        });

    };


    // My extensions

    $.fn.message = function(strongText, plainText) {

        return this.each(function() {            

            $(this)

                .empty().fadeIn()

                .html(&#039;&lt;strong&gt;&#039; + strongText + &#039;&lt;/strong&gt; &#039; + plainText + &#039;&#039;)

                .delay(2000).fadeOut();

        });

    };

})(jQuery);

</description>
		<content:encoded><![CDATA[<p>hi man i really like your code. also i changed your code a bit tomeet my requirement. However, it didnt work somehow for deleting individual item.</p>
<p>here is my code for scheduler.js</p>
<p>$(function() {</p>
<p>    // Initialize some jQuery objects</p>
<p>    var </p>
<p>        $error = $(&#8216;#error&#8217;),</p>
<p>        $info = $(&#8216;#info&#8217;),</p>
<p>        $entry_section = $(&#8216;#add-entry-section&#8217;),</p>
<p>        $entry_name = $(&#8216;#entry-name&#8217;),</p>
<p>        $schedule = $(&#8216;#schedule&#8217;),</p>
<p>        $clone = $(&#8216;#clone&#8217;),</p>
<p>        $generate = $(&#8216;#generate&#8217;);</p>
<p>    // Start the setup</p>
<p>    init();</p>
<p>    // Setup code</p>
<p>    function init() {</p>
<p>        // Hide Stuff</p>
<p>        $error.hide();</p>
<p>        $info.hide();</p>
<p>        // Make the table cells selectable</p>
<p>        $schedule.selectable({</p>
<p>            filter: &#8216;td&#8217;</p>
<p>        });</p>
<p>        // Whenever entries are created, let them be deletable</p>
<p>        $(&#8216;.deletable&#8217;).live(&#8216;click&#8217;, removeEntry);</p>
<p>        // Activate buttons</p>
<p>        //$(&#8216;#add-entry&#8217;).click(openEntrySection);</p>
<p>        $(&#8216;#save&#8217;).click(addEntries);</p>
<p>        $(&#8216;#cancel&#8217;).click(closeEntrySection);</p>
<p>        $(&#8216;#add-entry-form&#8217;).submit(addEntries);</p>
<p>        $(&#8216;#add-row&#8217;)</p>
<p>            .click(addRow)</p>
<p>            .hover(addRowHighlight, addRowUndoHighlight);</p>
<p>        $(&#8216;#remove-row&#8217;)</p>
<p>            .click(removeRow)</p>
<p>            .hover(removeRowHighlight, removeRowUndoHighlight);</p>
<p>        $(&#8216;#remove-entries&#8217;)</p>
<p>            .click(removeEntries)</p>
<p>            .hover(removeEntriesHighlight, removeEntriesUndoHighlight);</p>
<p>        $(&#8216;#generate&#8217;).click(generateSchedule);</p>
<p>        // Prevent text selection on double-click</p>
<p>        $(&#8216;.actions a&#8217;)</p>
<p>            .attr(&#8216;unselectable&#8217;,'on&#8217;)</p>
<p>            .css(&#8216;MozUserSelect&#8217;,'none&#8217;)</p>
<p>            .bind(&#8216;selectstart.ui&#8217;, function() {</p>
<p>                return false;</p>
<p>            });</p>
<p>    }</p>
<p>    // Add a row to the table</p>
<p>    function addRow() {</p>
<p>        $schedule.find(&#8216;tbody&#8217;).append(&#8221;);</p>
<p>        addRowUndoHighlight();</p>
<p>        addRowHighlight();</p>
<p>        return false;</p>
<p>    }</p>
<p>    // Highlight bottom row of table to cue user of add action</p>
<p>    function addRowHighlight() {</p>
<p>        $schedule.find(&#8216;tbody tr:last-child *&#8217;).addClass(&#8216;adding&#8217;);</p>
<p>    }</p>
<p>    // Undo highlight</p>
<p>    function addRowUndoHighlight() {</p>
<p>        $schedule.find(&#8216;tbody tr *&#8217;).removeClass(&#8216;adding&#8217;);</p>
<p>    }</p>
<p>    // Delete last row from the table</p>
<p>    function removeRow() {</p>
<p>        $schedule.find(&#8216;tbody tr&#8217;).last().remove();</p>
<p>        removeRowUndoHighlight();</p>
<p>        removeRowHighlight();</p>
<p>        return false;</p>
<p>    }</p>
<p>    // Highlight row to be deleted to cue user of delete action</p>
<p>    function removeRowHighlight() {</p>
<p>        $schedule.find(&#8216;tbody tr:last-child *&#8217;).addClass(&#8216;deleting&#8217;);</p>
<p>    }</p>
<p>    // Undo highlight</p>
<p>    function removeRowUndoHighlight() {</p>
<p>        $schedule.find(&#8216;tbody tr *&#8217;).removeClass(&#8216;deleting&#8217;);</p>
<p>    }</p>
<p>    // Show &#8220;add entry&#8221; section</p>
<p>    function openEntrySection() {</p>
<p>        // Prevent entry deletion when section is open</p>
<p>        $schedule.find(&#8216;.entry&#8217;).removeClass(&#8216;deletable&#8217;).removeAttr(&#8216;title&#8217;);</p>
<p>        // Show section</p>
<p>        $entry_section.slideDown(function() {</p>
<p>            $entry_name.focus();</p>
<p>        });</p>
<p>        // Make the table cells selectable</p>
<p>        $schedule.selectable({</p>
<p>            filter: &#8216;td&#8217;</p>
<p>        });</p>
<p>        return false;</p>
<p>    }</p>
<p>    // Hide &#8220;add entry&#8221; section</p>
<p>    function closeEntrySection() {</p>
<p>        // Get rid of selectables</p>
<p>        $schedule.selectable(&#8216;destroy&#8217;);</p>
<p>        $(&#8216;.ui-selected&#8217;).removeClass(&#8216;ui-selected&#8217;);</p>
<p>        // Make entries deletable</p>
<p>        $schedule.find(&#8216;.entry&#8217;).addClass(&#8216;deletable&#8217;).attr(&#8216;title&#8217;,'Click to delete&#8217;);</p>
<p>        // Make the table cells selectable</p>
<p>        $schedule.selectable({</p>
<p>            filter: &#8216;td&#8217;</p>
<p>        });</p>
<p>        return false;</p>
<p>    }</p>
<p>    // Add entries to table</p>
<p>    function addEntries() {</p>
<p>        // Get the input text</p>
<p>        var entryValue = &#8220;OK&#8221;;;</p>
<p>        entryValue = $.trim(entryValue);</p>
<p>        // Get selected table cells</p>
<p>        var $selected = $(&#8216;.ui-selected&#8217;);</p>
<p>        if (!entryValue) {</p>
<p>            $error.message(&#8220;&#8221;, &#8220;You didn&#8217;t enter a name.&#8221;);</p>
<p>        } else if (!$selected.length) {</p>
<p>            $error.message(&#8220;&#8221;, &#8220;You didn&#8217;t select anything.&#8221;);</p>
<p>        } else {</p>
<p>            // Add entry to each selected cell</p>
<p>            var entry = &#8221; + entryValue + &#8221;;</p>
<p>            $selected.append(entry);</p>
<p>            // Close the section</p>
<p>            //closeEntrySection();</p>
<p>        $(&#8216;.ui-selected&#8217;).removeClass(&#8216;ui-selected&#8217;);</p>
<p>            $info.message(&#8220;&#8221;, entryValue + &#8221; has been added.&#8221;);</p>
<p>        }</p>
<p>        return false;</p>
<p>    }</p>
<p>    // Delete entry from the table</p>
<p>    function removeEntry() {</p>
<p>        $(this).effect(&#8216;explode&#8217;, 500, function() {</p>
<p>            $(this).remove();</p>
<p>        });</p>
<p>    }</p>
<p>    // Delete all entries from the table</p>
<p>    function removeEntries() {</p>
<p>        // Find all entries</p>
<p>        var $entries = $schedule.find(&#8216;.entry&#8217;);</p>
<p>        // Delete them</p>
<p>        $entries.fadeOut(function() {</p>
<p>            $entries.remove();</p>
<p>        });</p>
<p>        return false;</p>
<p>    }</p>
<p>    // Highlight entries to be deleted to cue user of deletion action</p>
<p>    function removeEntriesHighlight() {</p>
<p>        $(&#8216;.entry&#8217;).addClass(&#8216;deleting&#8217;);</p>
<p>    }</p>
<p>    // Undo highlight</p>
<p>    function removeEntriesUndoHighlight() {</p>
<p>        $(&#8216;.entry&#8217;).removeClass(&#8216;deleting&#8217;);</p>
<p>    }</p>
<p>    // Generate a schedule from the table</p>
<p>    function generateSchedule() {</p>
<p>        // Clone the table</p>
<p>        $clone.empty()</p>
<p>        $schedule.clone().removeAttr(&#8216;id&#8217;).removeClass(&#8216;ui-selectable&#8217;).addClass(&#8216;cloned&#8217;).appendTo($clone);</p>
<p>        // Remove input fields</p>
<p>        // Prevent entries from deletion</p>
<p>        // Display random entry for each cell</p>
<p>        $clone</p>
<p>            .find(&#8216;input&#8217;).each(function(index) {</p>
<p>                var text = $(this).val();</p>
<p>                $(this).replaceWith(&#8221; + text + &#8221;);</p>
<p>            }).end()</p>
<p>            .find(&#8216;.deletable&#8217;).removeClass(&#8216;deletable&#8217;).removeAttr(&#8216;title&#8217;).end()</p>
<p>            .find(&#8216;.ui-selectee&#8217;).removeClass(&#8216;ui-selectee&#8217;).end()</p>
<p>            .find(&#8216;.ui-selected&#8217;).removeClass(&#8216;ui-selected&#8217;).end()</p>
<p>            .find(&#8216;.cloned tbody td&#8217;).randomChild();</p>
<p>        return false;</p>
<p>    }</p>
<p>});</p>
<p>;(function($) {</p>
<p>    /* </p>
<p>     * Random Child (0.1)</p>
<p>     * by Mike Branski (www.leftrightdesigns.com)</p>
<p>     * <a href="mailto:mikebranski@gmail.com">mikebranski@gmail.com</a></p>
<p>     *</p>
<p>     * Copyright (c) 2008 Mike Branski (www.leftrightdesigns.com)</p>
<p>     * Licensed under GPL (www.leftrightdesigns.com/library/jquery/randomchild/gpl.txt)</p>
<p>     */</p>
<p>    $.fn.randomChild = function(settings) {</p>
<p>        return this.each(function(){</p>
<p>            var c = $(this).children().length;</p>
<p>            var r = Math.ceil(Math.random() * c);</p>
<p>            $(this).children().hide().parent().children(&#8216;:nth-child(&#8216; + r + &#8216;)&#8217;).show();</p>
<p>        });</p>
<p>    };</p>
<p>    // My extensions</p>
<p>    $.fn.message = function(strongText, plainText) {</p>
<p>        return this.each(function() {            </p>
<p>            $(this)</p>
<p>                .empty().fadeIn()</p>
<p>                .html(&#8216;<strong>&#8216; + strongText + &#8216;</strong> &#8216; + plainText + &#8221;)</p>
<p>                .delay(2000).fadeOut();</p>
<p>        });</p>
<p>    };</p>
<p>})(jQuery);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linda</title>
		<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/comment-page-1/#comment-177</link>
		<dc:creator>Linda</dc:creator>
		<pubDate>Mon, 31 May 2010 19:50:57 +0000</pubDate>
		<guid isPermaLink="false">http://zarjay.net/?p=599#comment-177</guid>
		<description>I would find it very useful- if my vote counts! :)</description>
		<content:encoded><![CDATA[<p>I would find it very useful- if my vote counts! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linda</title>
		<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/comment-page-1/#comment-176</link>
		<dc:creator>Linda</dc:creator>
		<pubDate>Mon, 31 May 2010 14:50:57 +0000</pubDate>
		<guid isPermaLink="false">http://zarjay.net/?p=599#comment-176</guid>
		<description>I would find it very useful- if my vote counts! :)</description>
		<content:encoded><![CDATA[<p>I would find it very useful- if my vote counts! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zarjay</title>
		<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/comment-page-1/#comment-175</link>
		<dc:creator>Zarjay</dc:creator>
		<pubDate>Fri, 28 May 2010 21:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://zarjay.net/?p=599#comment-175</guid>
		<description>Sorry, it currently doesn&#039;t tally names. Although, that&#039;s something I can add to the app if people find it useful. ^_^</description>
		<content:encoded><![CDATA[<p>Sorry, it currently doesn&#39;t tally names. Although, that&#39;s something I can add to the app if people find it useful. ^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linda</title>
		<link>http://zarjay.net/2010/05/01/updating-my-scheduler-app-with-more-css-and-javascript-goodness/comment-page-1/#comment-174</link>
		<dc:creator>Linda</dc:creator>
		<pubDate>Fri, 28 May 2010 16:04:06 +0000</pubDate>
		<guid isPermaLink="false">http://zarjay.net/?p=599#comment-174</guid>
		<description>Very cool scheduler! I was wondering if there was a way to tally the employee name by time, to see how many &quot;shifts&quot; each person worked.</description>
		<content:encoded><![CDATA[<p>Very cool scheduler! I was wondering if there was a way to tally the employee name by time, to see how many &#8220;shifts&#8221; each person worked.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

