<?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 timepickr</title>
	<atom:link href="http://bililite.nfshost.com/blog/2009/07/09/updating-timepickr/feed/" rel="self" type="application/rss+xml" />
	<link>http://bililite.nfshost.com/blog/2009/07/09/updating-timepickr/</link>
	<description>Thoughts on web design and programming from a very occasional volunteer webmaster</description>
	<lastBuildDate>Fri, 03 Feb 2012 05:24:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2009/07/09/updating-timepickr/comment-page-1/#comment-4896</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Fri, 01 Jul 2011 12:03:52 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=1009#comment-4896</guid>
		<description>@Lucas:
That looks right. Can you put up a page with your code and I&#039;ll try to look at it? Try it without the &lt;code&gt;trigger&lt;/code&gt; option as well.
--Danny</description>
		<content:encoded><![CDATA[<p>@Lucas:<br />
That looks right. Can you put up a page with your code and I&#8217;ll try to look at it? Try it without the <code>trigger</code> option as well.<br />
&#8211;Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas</title>
		<link>http://bililite.nfshost.com/blog/2009/07/09/updating-timepickr/comment-page-1/#comment-4828</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Tue, 28 Jun 2011 11:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=1009#comment-4828</guid>
		<description>This time picker functionality seems to be exactly what I need.
However, it must be because I&#039;m new to jQuery but I cannot get this to work. It&#039;s so frustrating. I was using the old timepickr but I really want to use this one.
Here is my code:

    
        
        
        
        
        
        
        
        
        
            $(function(){
                $(&#039;#timestart&#039;).timepickr({
                    trigger: &#039;focus&#039;
                });
            });
        
    
    
        
    


Am I referencing the field in the wrong manner? That&#039;s how I call timepickr from the original site and it works. It doesn&#039;t seem to work in this case. I am calling jquery-ui and everything.
Thanks in advance for any tips and/or advice.</description>
		<content:encoded><![CDATA[<p>This time picker functionality seems to be exactly what I need.<br />
However, it must be because I&#8217;m new to jQuery but I cannot get this to work. It&#8217;s so frustrating. I was using the old timepickr but I really want to use this one.<br />
Here is my code:</p>
<p>            $(function(){<br />
                $(&#8216;#timestart&#8217;).timepickr({<br />
                    trigger: &#8216;focus&#8217;<br />
                });<br />
            });</p>
<p>Am I referencing the field in the wrong manner? That&#8217;s how I call timepickr from the original site and it works. It doesn&#8217;t seem to work in this case. I am calling jquery-ui and everything.<br />
Thanks in advance for any tips and/or advice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane Tomlinson</title>
		<link>http://bililite.nfshost.com/blog/2009/07/09/updating-timepickr/comment-page-1/#comment-1988</link>
		<dc:creator>Shane Tomlinson</dc:creator>
		<pubDate>Fri, 05 Nov 2010 11:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=1009#comment-1988</guid>
		<description>Hey Danny, great work here getting this updated for the newest jQuery/UI.  I have a patch to your redo I&#039;d like to submit back to you, it fixes some problems binding to blur to close the timepicker if trigger is set to something other than &quot;click&quot;, fixes a problem if the field does not have a value when the timepicker is instantiated but has a value when it is first shown, and finally fixes an issue I was seeing with the minutes row being shifted left in 24 hour mode whenever looking at hours 12-23.  Could you get back to me with an address I can mail this to?

Thanks,
Shane</description>
		<content:encoded><![CDATA[<p>Hey Danny, great work here getting this updated for the newest jQuery/UI.  I have a patch to your redo I&#8217;d like to submit back to you, it fixes some problems binding to blur to close the timepicker if trigger is set to something other than &#8220;click&#8221;, fixes a problem if the field does not have a value when the timepicker is instantiated but has a value when it is first shown, and finally fixes an issue I was seeing with the minutes row being shifted left in 24 hour mode whenever looking at hours 12-23.  Could you get back to me with an address I can mail this to?</p>
<p>Thanks,<br />
Shane</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2009/07/09/updating-timepickr/comment-page-1/#comment-1937</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Sun, 31 Oct 2010 03:29:09 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=1009#comment-1937</guid>
		<description>@Haso Keric:
Ah, got it. They created a real base class called $.Widget, so you had to change $.widget.prototype to $.Widget.prototype.
I updated my code; thanks!

I kept the CSS stuff in the .js file so I could keep it all in one file, though your approach is of course the correct one.
--Danny</description>
		<content:encoded><![CDATA[<p>@Haso Keric:<br />
Ah, got it. They created a real base class called $.Widget, so you had to change $.widget.prototype to $.Widget.prototype.<br />
I updated my code; thanks!</p>
<p>I kept the CSS stuff in the .js file so I could keep it all in one file, though your approach is of course the correct one.<br />
&#8211;Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haso Keric</title>
		<link>http://bililite.nfshost.com/blog/2009/07/09/updating-timepickr/comment-page-1/#comment-1928</link>
		<dc:creator>Haso Keric</dc:creator>
		<pubDate>Fri, 29 Oct 2010 15:08:43 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=1009#comment-1928</guid>
		<description>It was minor changes the widget failed to destroy itself and cause a js error because apparently in 1.4.3 they changed the way this should be done... But ill keep improving it of course.. i also moved CSS stuff from .js to .css

keep an eye on it.. and contribute :)</description>
		<content:encoded><![CDATA[<p>It was minor changes the widget failed to destroy itself and cause a js error because apparently in 1.4.3 they changed the way this should be done&#8230; But ill keep improving it of course.. i also moved CSS stuff from .js to .css</p>
<p>keep an eye on it.. and contribute <img src='http://bililite.nfshost.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2009/07/09/updating-timepickr/comment-page-1/#comment-1907</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Tue, 26 Oct 2010 03:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=1009#comment-1907</guid>
		<description>@Haso:
I assume you updated the code for jQuery UI 1.8.5, though I can&#039;t see any differences just glancing through the code. What changes did you make?
--Danny</description>
		<content:encoded><![CDATA[<p>@Haso:<br />
I assume you updated the code for jQuery UI 1.8.5, though I can&#8217;t see any differences just glancing through the code. What changes did you make?<br />
&#8211;Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haso Keric</title>
		<link>http://bililite.nfshost.com/blog/2009/07/09/updating-timepickr/comment-page-1/#comment-1905</link>
		<dc:creator>Haso Keric</dc:creator>
		<pubDate>Mon, 25 Oct 2010 21:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=1009#comment-1905</guid>
		<description>Update the timepickr once again - http://github.com/hasokeric/jquery-timepickr/blob/master/jquery.timepickr.js</description>
		<content:encoded><![CDATA[<p>Update the timepickr once again &#8211; <a href="http://github.com/hasokeric/jquery-timepickr/blob/master/jquery.timepickr.js" rel="nofollow">http://github.com/hasokeric/jquery-timepickr/blob/master/jquery.timepickr.js</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2009/07/09/updating-timepickr/comment-page-1/#comment-1871</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Thu, 21 Oct 2010 15:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=1009#comment-1871</guid>
		<description>@Lucas:
Thanks! I don&#039;t use ui.dialog, but others may find this useful.
Danny</description>
		<content:encoded><![CDATA[<p>@Lucas:<br />
Thanks! I don&#8217;t use ui.dialog, but others may find this useful.<br />
Danny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas G.</title>
		<link>http://bililite.nfshost.com/blog/2009/07/09/updating-timepickr/comment-page-1/#comment-1841</link>
		<dc:creator>Lucas G.</dc:creator>
		<pubDate>Tue, 19 Oct 2010 13:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=1009#comment-1841</guid>
		<description>Hello @Mario / @Danny

I have found some problems combining this with a jQuery dialog. This little change does the work for me:

From:

			if (this.options.resetOnBlur) {
				menu.find(&#039;li&#039;).bind(&#039;mousedown.timepickr&#039;, function() {
					element.data(&#039;timepickr.initialValue&#039;, element.val());
				});
			}



to:

			if (this.options.resetOnBlur) {
				menu.find(&#039;li&#039;).bind(&#039;mousedown.timepickr&#039;, function() {
					element.data(&#039;timepickr.initialValue&#039;, element.val());

					ui.hide(); //Add this line
				});
			}

Hope this helps to anyone who may need it.

Regards.</description>
		<content:encoded><![CDATA[<p>Hello @Mario / @Danny</p>
<p>I have found some problems combining this with a jQuery dialog. This little change does the work for me:</p>
<p>From:</p>
<p>			if (this.options.resetOnBlur) {<br />
				menu.find(&#8216;li&#8217;).bind(&#8216;mousedown.timepickr&#8217;, function() {<br />
					element.data(&#8216;timepickr.initialValue&#8217;, element.val());<br />
				});<br />
			}</p>
<p>to:</p>
<p>			if (this.options.resetOnBlur) {<br />
				menu.find(&#8216;li&#8217;).bind(&#8216;mousedown.timepickr&#8217;, function() {<br />
					element.data(&#8216;timepickr.initialValue&#8217;, element.val());</p>
<p>					ui.hide(); //Add this line<br />
				});<br />
			}</p>
<p>Hope this helps to anyone who may need it.</p>
<p>Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://bililite.nfshost.com/blog/2009/07/09/updating-timepickr/comment-page-1/#comment-1766</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Wed, 22 Sep 2010 15:40:28 +0000</pubDate>
		<guid isPermaLink="false">http://bililite.nfshost.com/blog/?p=1009#comment-1766</guid>
		<description>@Vincenzo:
There&#039;s no way to limit the range of hours as the plugin is currently written, but you could modify it: change the &lt;code&gt;_getRanges12&lt;/code&gt; or &lt;code&gt;_getRanges24&lt;/code&gt; functions to just the hours you want, then change the lines
&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;			var dayHours   = hrs.find(&#039;li&#039;).slice(0, 12);
			var nightHours = hrs.find(&#039;li&#039;).slice(12, 24);&lt;/code&gt;&lt;/pre&gt; in &lt;code&gt;_redraw&lt;/code&gt; to select the appropriate hours.

Hope this helps,
Danny</description>
		<content:encoded><![CDATA[<p>@Vincenzo:<br />
There&#8217;s no way to limit the range of hours as the plugin is currently written, but you could modify it: change the <code>_getRanges12</code> or <code>_getRanges24</code> functions to just the hours you want, then change the lines</p>
<pre><code class="language-javascript">			var dayHours   = hrs.find('li').slice(0, 12);
			var nightHours = hrs.find('li').slice(12, 24);</code></pre>
<p> in <code>_redraw</code> to select the appropriate hours.</p>
<p>Hope this helps,<br />
Danny</p>
]]></content:encoded>
	</item>
</channel>
</rss>

