Skip to content

Commit

Permalink
0.2.2 - Fixed a "console.log" bug with previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fgelinas committed Jun 17, 2011
1 parent e8935a8 commit fe0f227
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
13 changes: 7 additions & 6 deletions index.html
Expand Up @@ -4,11 +4,11 @@
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<title>jQuery UI Time Picker by Francois Gelinas</title>
<link rel="stylesheet" href="ui-lightness/jquery-ui-1.8.13.custom.css" type="text/css" />
<link rel="stylesheet" href="jquery-ui-timepicker.css?v=0.2.1" type="text/css" />
<link rel="stylesheet" href="jquery-ui-timepicker.css?v=0.2.2" type="text/css" />

<script type="text/javascript" src="jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="jquery.ui.core.js"></script>
<script type="text/javascript" src="jquery.ui.timepicker.js?v=0.2.1"></script>
<script type="text/javascript" src="jquery.ui.timepicker.js?v=0.2.2"></script>
<style type="text/css">
/* some styling for the page */
body { font-size: 10px; /* for the widget natural size */}
Expand Down Expand Up @@ -417,13 +417,13 @@ <h2>Requirements : </h2>
</li>

<li>
<a href="jquery.ui.timepicker.js?v=0.2.1">
<a href="jquery.ui.timepicker.js?v=0.2.2">
jquery.ui.timepicker.js
</a>
</li>

<li>
<a href="jquery-ui-timepicker.css?v=0.2.1">
<a href="jquery-ui-timepicker.css?v=0.2.2">
jquery-ui-timepicker.css
</a>
</li>
Expand All @@ -434,7 +434,7 @@ <h2>Requirements : </h2>
<strong>New! New!</strong> TimePicker is now 100% more social, on GitHub @ <a href="http://github.com/fgelinas/timepicker">http://github.com/fgelinas/timepicker</a>.
</p>
<p>
Get the release package here : <a href="releases/jquery-ui-timepicker-0.2.1.zip">jquery-ui-timepicker-0.2.1.zip</a>
Get the release package here : <a href="releases/jquery-ui-timepicker-0.2.2.zip">jquery-ui-timepicker-0.2.2.zip</a>
</p>


Expand All @@ -443,7 +443,8 @@ <h2>Requirements : </h2>
<h2>Releases :</h2>
<dl>


<dt>0.2.2 - June 16, 2011</dt>
<dd>Fixed a "console.log" line that I forgot to remove before release 0.2.1. (Thanks Derek Lavine)</dd>

<dt>0.2.1 - June 8, 2011</dt>
<dd>Timepicker does not give the focus back to the input any more after time selection. This is similar to the datepicker behaviour and is more natural to the user because it shows the dialog again when the user click on the input again, as expected.</dd>
Expand Down
10 changes: 3 additions & 7 deletions jquery.ui.timepicker.js
@@ -1,5 +1,5 @@
/*
* jQuery UI Timepicker 0.2.1
* jQuery UI Timepicker 0.2.2
*
* Copyright 2010-2011, Francois Gelinas
* Dual licensed under the MIT or GPL Version 2 licenses.
Expand Down Expand Up @@ -40,7 +40,7 @@

(function ($, undefined) {

$.extend($.ui, { timepicker: { version: "0.2.1"} });
$.extend($.ui, { timepicker: { version: "0.2.2"} });

var PROP_NAME = 'timepicker';
var tpuuid = new Date().getTime();
Expand Down Expand Up @@ -516,10 +516,6 @@
for (m = minutes_options.starts; m <= minutes_options.ends; m += minutes_options.interval) {
minutes.push(m);
}
if (minutes_options.interval == 15) {
console.log('found it');
console.log(minutes_options.starts);
}
minutesPerRow = Math.round(minutes.length / rows + 0.49); // always round up

/*
Expand Down Expand Up @@ -1012,7 +1008,7 @@
$.timepicker = new Timepicker(); // singleton instance
$.timepicker.initialized = false;
$.timepicker.uuid = new Date().getTime();
$.timepicker.version = "0.2.1";
$.timepicker.version = "0.2.2";

// Workaround for #4055
// Add another global to avoid noConflict issues with inline event handlers
Expand Down
3 changes: 3 additions & 0 deletions releases.txt
@@ -1,3 +1,6 @@
Release 0.2.2 - June 16, 2011
Fixed a "console.log" line that I forgot to remove before release 0.2.1

Release 0.2.1 - June 12, 2011
Timepicker does not give the focus back to the input any more after time selection. This is similar to the datepicker behaviour and is more natural to the user because it shows the dialog again when the user click on the input again, as expected.
Added options to customize the hours and minutes ranges and interval for more customization.
Expand Down

0 comments on commit fe0f227

Please sign in to comment.