Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

Commit

Permalink
build: release 1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Feb 19, 2019
1 parent 59594a0 commit 95aa22f
Show file tree
Hide file tree
Showing 12 changed files with 903 additions and 1,309 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.7 (Feb 19, 2019)

- Fix unexpected month changing (#198).

## 1.0.6 (Jan 19, 2019)

- Fix wrong parameter for the `$.contains` function.
Expand Down
16 changes: 10 additions & 6 deletions dist/datepicker.common.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.6
* Datepicker v1.0.7
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-19T09:15:49.236Z
* Date: 2019-02-19T12:18:04.827Z
*/

'use strict';
Expand Down Expand Up @@ -636,11 +636,12 @@ var handlers = {
break;

case 'year':
viewYear = parseInt($target.text(), 10);
date.setFullYear(viewYear);
viewYear = parseInt($target.text(), 10); // Set date first to avoid month changing (#195)

date.setDate(getMinDay(viewYear, viewMonth, viewDay));
viewDate.setFullYear(viewYear);
date.setFullYear(viewYear);
viewDate.setDate(getMinDay(viewYear, viewMonth, viewDay));
viewDate.setFullYear(viewYear);

if (format.hasMonth) {
this.showView(VIEWS.MONTHS);
Expand Down Expand Up @@ -717,10 +718,13 @@ var handlers = {
viewMonth += 1;
}

viewDay = parseInt($target.text(), 10);
viewDay = parseInt($target.text(), 10); // Set date to 1 to avoid month changing (#195)

date.setDate(1);
date.setFullYear(viewYear);
date.setMonth(viewMonth);
date.setDate(viewDay);
viewDate.setDate(1);
viewDate.setFullYear(viewYear);
viewDate.setMonth(viewMonth);
viewDate.setDate(viewDay);
Expand Down
4 changes: 2 additions & 2 deletions dist/datepicker.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.6
* Datepicker v1.0.7
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-19T09:15:45.725Z
* Date: 2019-02-19T12:18:01.828Z
*/

.datepicker-container {
Expand Down
16 changes: 10 additions & 6 deletions dist/datepicker.esm.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.6
* Datepicker v1.0.7
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-19T09:15:49.236Z
* Date: 2019-02-19T12:18:04.827Z
*/

import $ from 'jquery';
Expand Down Expand Up @@ -632,11 +632,12 @@ var handlers = {
break;

case 'year':
viewYear = parseInt($target.text(), 10);
date.setFullYear(viewYear);
viewYear = parseInt($target.text(), 10); // Set date first to avoid month changing (#195)

date.setDate(getMinDay(viewYear, viewMonth, viewDay));
viewDate.setFullYear(viewYear);
date.setFullYear(viewYear);
viewDate.setDate(getMinDay(viewYear, viewMonth, viewDay));
viewDate.setFullYear(viewYear);

if (format.hasMonth) {
this.showView(VIEWS.MONTHS);
Expand Down Expand Up @@ -713,10 +714,13 @@ var handlers = {
viewMonth += 1;
}

viewDay = parseInt($target.text(), 10);
viewDay = parseInt($target.text(), 10); // Set date to 1 to avoid month changing (#195)

date.setDate(1);
date.setFullYear(viewYear);
date.setMonth(viewMonth);
date.setDate(viewDay);
viewDate.setDate(1);
viewDate.setFullYear(viewYear);
viewDate.setMonth(viewMonth);
viewDate.setDate(viewDay);
Expand Down
16 changes: 10 additions & 6 deletions dist/datepicker.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.6
* Datepicker v1.0.7
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-19T09:15:49.236Z
* Date: 2019-02-19T12:18:04.827Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -638,11 +638,12 @@
break;

case 'year':
viewYear = parseInt($target.text(), 10);
date.setFullYear(viewYear);
viewYear = parseInt($target.text(), 10); // Set date first to avoid month changing (#195)

date.setDate(getMinDay(viewYear, viewMonth, viewDay));
viewDate.setFullYear(viewYear);
date.setFullYear(viewYear);
viewDate.setDate(getMinDay(viewYear, viewMonth, viewDay));
viewDate.setFullYear(viewYear);

if (format.hasMonth) {
this.showView(VIEWS.MONTHS);
Expand Down Expand Up @@ -719,10 +720,13 @@
viewMonth += 1;
}

viewDay = parseInt($target.text(), 10);
viewDay = parseInt($target.text(), 10); // Set date to 1 to avoid month changing (#195)

date.setDate(1);
date.setFullYear(viewYear);
date.setMonth(viewMonth);
date.setDate(viewDay);
viewDate.setDate(1);
viewDate.setFullYear(viewYear);
viewDate.setMonth(viewMonth);
viewDate.setDate(viewDay);
Expand Down
6 changes: 3 additions & 3 deletions dist/datepicker.min.css

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

6 changes: 3 additions & 3 deletions dist/datepicker.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/css/datepicker.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.6
* Datepicker v1.0.7
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-19T09:15:45.725Z
* Date: 2019-02-19T12:18:01.828Z
*/

.datepicker-container {
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="author" content="Chen Fengyuan">
<title>Datepicker</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="css/datepicker.css">
<link rel="stylesheet" href="css/main.css">
</head>
Expand Down Expand Up @@ -61,7 +61,7 @@
<div class="container">
<div class="row">
<div class="col-md">
<h1>Datepicker <small class="h6">v1.0.6</small></h1>
<h1>Datepicker <small class="h6">v1.0.7</small></h1>
<p class="lead">A simple jQuery datepicker plugin.</p>
</div>
<div class="col-md">
Expand Down Expand Up @@ -320,7 +320,7 @@ <h3 class="page-header">Methods</h3>

<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.bundle.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js"></script>
<script src="https://fengyuanchen.github.io/shared/google-analytics.js"></script>
<script src="js/datepicker.js"></script>
<script src="js/datepicker.ca-ES.js"></script>
Expand Down
16 changes: 10 additions & 6 deletions docs/js/datepicker.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.6
* Datepicker v1.0.7
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-19T09:15:49.236Z
* Date: 2019-02-19T12:18:04.827Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -638,11 +638,12 @@
break;

case 'year':
viewYear = parseInt($target.text(), 10);
date.setFullYear(viewYear);
viewYear = parseInt($target.text(), 10); // Set date first to avoid month changing (#195)

date.setDate(getMinDay(viewYear, viewMonth, viewDay));
viewDate.setFullYear(viewYear);
date.setFullYear(viewYear);
viewDate.setDate(getMinDay(viewYear, viewMonth, viewDay));
viewDate.setFullYear(viewYear);

if (format.hasMonth) {
this.showView(VIEWS.MONTHS);
Expand Down Expand Up @@ -719,10 +720,13 @@
viewMonth += 1;
}

viewDay = parseInt($target.text(), 10);
viewDay = parseInt($target.text(), 10); // Set date to 1 to avoid month changing (#195)

date.setDate(1);
date.setFullYear(viewYear);
date.setMonth(viewMonth);
date.setDate(viewDay);
viewDate.setDate(1);
viewDate.setFullYear(viewYear);
viewDate.setMonth(viewMonth);
viewDate.setDate(viewDay);
Expand Down
Loading

0 comments on commit 95aa22f

Please sign in to comment.