Skip to content

Commit

Permalink
fixed #124
Browse files Browse the repository at this point in the history
  • Loading branch information
amsul committed May 20, 2013
1 parent 63a3465 commit 3ff0a50
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 26 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# Changelog

## v3.0.2

- [#124](https://github.com/amsul/pickadate.js/issues/124): Fixed bug with navigating past year.

## v3.0.1

- [#123](https://github.com/amsul/pickadate.js/issues/123): Removed `hiddenSuffix` extra quote character.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pickadate v3.0.1 [![pickadate build status](https://travis-ci.org/amsul/pickadate.js.png?branch=gh-pages)](https://travis-ci.org/amsul/pickadate.js)
# pickadate v3.0.2 [![pickadate build status](https://travis-ci.org/amsul/pickadate.js.png?branch=gh-pages)](https://travis-ci.org/amsul/pickadate.js)

The mobile-friendly, responsive, and lightweight jQuery date & time input picker.

Expand All @@ -11,7 +11,7 @@ The mobile-friendly, responsive, and lightweight jQuery date & time input picker

#### To get it:

[Download v3.0.1](https://github.com/amsul/pickadate.js/archive/3.0.1.zip) or `git clone git://github.com/amsul/pickadate.js.git` or `bower install pickadate`
[Download v3.0.2](https://github.com/amsul/pickadate.js/archive/3.0.2.zip) or `git clone git://github.com/amsul/pickadate.js.git` or `bower install pickadate`



Expand All @@ -37,7 +37,7 @@ There are currently two pickers: **date** and **time**.
File | Contents | Size (min & gzip)
----------------------- | ------------------------ | ----------------------
`picker.js` | __Base *__ | 1.24kb
`picker.date.js` | Date picker | 1.86kb
`picker.date.js` | Date picker | 1.87kb
`picker.time.js` | Time picker | 1.30kb

__*__ The base script is **required** for any of the pickers to function.
Expand All @@ -62,7 +62,7 @@ __*__ One and only one base stylesheet is **required**. [Choose a theme](http://

### Translations

The translations are copied into the `lib/translations` folder. There are currently [30 languages](https://github.com/amsul/pickadate.js/blob/v3.0.1/lib/translations) included.
The translations are copied into the `lib/translations` folder. There are currently [30 languages](https://github.com/amsul/pickadate.js/blob/v3.0.2/lib/translations) included.


<br>
Expand Down
4 changes: 4 additions & 0 deletions _raw/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# Changelog

## v3.0.2

- [#124]({%= meta.gitrepo_url %}/issues/124): Fixed bug with navigating past year.

## v3.0.1

- [#123]({%= meta.gitrepo_url %}/issues/123): Removed `hiddenSuffix` extra quote character.
Expand Down
4 changes: 2 additions & 2 deletions _raw/lib/picker.date.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ DatePicker.prototype.navigate = function( type, value, options ) {
if ( Picker._.isObject( value ) ) {

var year = value.year,
month = value.month + ( options && options.nav ? options.nav : 0 ),
date = value.date
date = value.date,
month = new Date( year, value.month + ( options && options.nav ? options.nav : 0 ), 1 ).getMonth()

// If the month we’re going to doesn’t have enough days,
// keep decreasing the date until we reach the month’s last date.
Expand Down
16 changes: 8 additions & 8 deletions api.htm
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ <h2 class="heading heading--divide"><span class="heading__text">Clear<a class="h

<pre class="pre--demo"><code data-language="javascript">picker.clear()</code></pre>

<fieldset class="fieldset fieldset--demo js__fieldset"><div class="fieldset__wrapper"><button id=button__api-clear class="fieldset__button button button--small">Clear</button><input id="demo__api-clear" class="fieldset__input " type=text value="19 May, 2013" placeholder="Try me&hellip;"></div></fieldset>
<fieldset class="fieldset fieldset--demo js__fieldset"><div class="fieldset__wrapper"><button id=button__api-clear class="fieldset__button button button--small">Clear</button><input id="demo__api-clear" class="fieldset__input " type=text value="20 May, 2013" placeholder="Try me&hellip;"></div></fieldset>

<p>This is a shorthand that uses <a href="#method-set">the <code class="function">set</code> method</a> behind the scenes.</p>

Expand Down Expand Up @@ -307,7 +307,7 @@ <h3 class="heading heading--divide"><span class="heading__text"><b>*</b> Item Ob

<p>Each “date” or “time” within the picker has an item object accompanying it behind the scenes.</p>

<p>Here’s a <b>date picker item object</b> for <u>19 May, 2013</u>:</p>
<p>Here’s a <b>date picker item object</b> for <u>20 May, 2013</u>:</p>
<pre><code data-language="javascript">{
// The full year.
year: 2013,
Expand All @@ -328,16 +328,16 @@ <h3 class="heading heading--divide"><span class="heading__text"><b>*</b> Item Ob
pick: 1366430400000
}</code></pre>

<p>Here’s a <b>time picker item object</b> for <u>5:20 PM</u>:</p>
<p>Here’s a <b>time picker item object</b> for <u>3:42 AM</u>:</p>
<pre><code data-language="javascript">{
// Hour of the day from 0 to 23.
hour: 17,
hour: 3,

// The minutes of the hour from 0 to 59 (based on the interval).
mins: 30,
mins: 60,

// The “pick” value used for comparisons.
pick: 1050
pick: 240
}</code></pre>

</div> <!-- .section__block -->
Expand All @@ -355,7 +355,7 @@ <h2 class="heading heading--divide"><span class="heading__text">Get <code class=

<pre class="pre--demo"><code data-language="javascript">picker.get() // Short for `picker.get('value')`.</code></pre>

<fieldset class="fieldset fieldset--demo js__fieldset"><div class="fieldset__wrapper"><button id=button__api-get--value class="fieldset__button button button--small">Log the value</button><input id="demo__api-get--value" class="fieldset__input " type=text value="19 May, 2013" placeholder="Open your console and try me&hellip;"></div></fieldset>
<fieldset class="fieldset fieldset--demo js__fieldset"><div class="fieldset__wrapper"><button id=button__api-get--value class="fieldset__button button button--small">Log the value</button><input id="demo__api-get--value" class="fieldset__input " type=text value="20 May, 2013" placeholder="Open your console and try me&hellip;"></div></fieldset>

</div> <!-- .section__block -->

Expand Down Expand Up @@ -522,7 +522,7 @@ <h2 class="heading heading--divide"><span class="heading__text">Set <code class=

<pre class="pre--demo"><code data-language="javascript">picker.set('clear')</code></pre>

<fieldset class="fieldset fieldset--demo js__fieldset"><div class="fieldset__wrapper"><button id=button__api-set-clear class="fieldset__button button button--small">Clear</button><input id="demo__api-set-clear" class="fieldset__input " type=text value="19 May, 2013" placeholder="Try me&hellip;"></div></fieldset>
<fieldset class="fieldset fieldset--demo js__fieldset"><div class="fieldset__wrapper"><button id=button__api-set-clear class="fieldset__button button button--small">Clear</button><input id="demo__api-set-clear" class="fieldset__input " type=text value="20 May, 2013" placeholder="Try me&hellip;"></div></fieldset>

<p>This is the full form of <a href="#method-clear">the <code class="function">clear</code> method</a>.</p>

Expand Down
2 changes: 1 addition & 1 deletion index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<div class="section__block text-center">
<h1 class="heading heading--splash"><img src="demo/images/logo.png" alt="pickadate.js" width="478" height="90"></h1>
<h2 class="heading heading--thin">The mobile-friendly, responsive, and&nbsp;lightweight<br>jQuery date <span class="ampersand">&amp;</span> time input picker.</h2>
<h3 class="heading heading--thin"><a class="button" href="https://github.com/amsul/pickadate.js/archive/3.0.1.zip">Download pickadate.js v3.0.1</a></h3>
<h3 class="heading heading--thin"><a class="button" href="https://github.com/amsul/pickadate.js/archive/3.0.2.zip">Download pickadate.js v3.0.2</a></h3>
<div class="groupset groupset--splash">
<span class="groupset__item"><iframe src="http://ghbtns.com/github-btn.html?user=amsul&repo=pickadate.js&size=large&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="145" height="30"></iframe></span>
<span class="groupset__item"><iframe src="http://ghbtns.com/github-btn.html?user=amsul&repo=pickadate.js&size=large&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="135" height="30"></iframe></span>
Expand Down
4 changes: 2 additions & 2 deletions lib/compressed/picker.date.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/compressed/picker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/compressed/picker.time.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions lib/picker.date.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/*!
* Date picker for pickadate.js v3.0.1
* Date picker for pickadate.js v3.0.2
* http://amsul.github.io/pickadate.js/date.htm
*/

Expand Down Expand Up @@ -217,8 +217,8 @@ DatePicker.prototype.navigate = function( type, value, options ) {
if ( Picker._.isObject( value ) ) {

var year = value.year,
month = value.month + ( options && options.nav ? options.nav : 0 ),
date = value.date
date = value.date,
month = new Date( year, value.month + ( options && options.nav ? options.nav : 0 ), 1 ).getMonth()

// If the month we’re going to doesn’t have enough days,
// keep decreasing the date until we reach the month’s last date.
Expand Down
2 changes: 1 addition & 1 deletion lib/picker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/*!
* pickadate.js v3.0.1, 2013/05/19
* pickadate.js v3.0.2, 2013/05/20
* By Amsul, http://amsul.ca
* Hosted on http://amsul.github.io/pickadate.js
* Licensed under MIT
Expand Down
2 changes: 1 addition & 1 deletion lib/picker.time.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/*!
* Time picker for pickadate.js v3.0.1
* Time picker for pickadate.js v3.0.2
* http://amsul.github.io/pickadate.js/time.htm
*/

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pickadate",
"version": "3.0.1",
"version": "3.0.2",
"title": "pickadate.js",
"description": "The mobile-friendly, responsive, and lightweight jQuery date & time input picker.",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion pickadate.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pickadate",
"version": "3.0.1",
"version": "3.0.2",
"title": "pickadate.js",
"description": "The mobile-friendly, responsive, and lightweight jQuery date & time input picker.",
"author": {
Expand Down

0 comments on commit 3ff0a50

Please sign in to comment.