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.8
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Jun 23, 2019
1 parent a4588ac commit 739d671
Show file tree
Hide file tree
Showing 13 changed files with 1,525 additions and 1,667 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## next
## 1.0.8 (Jun 23, 2019)

- Fix the issue of unable to pick the current month or year again (#203).

Expand Down
12 changes: 6 additions & 6 deletions dist/datepicker.common.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.7
* Datepicker v1.0.8
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-02-19T12:18:04.827Z
* Date: 2019-06-23T08:07:40.545Z
*/

'use strict';
Expand Down Expand Up @@ -628,7 +628,7 @@ var handlers = {
if (format.hasMonth) {
this.showView(VIEWS.MONTHS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'year');
this.hideView();
}

Expand All @@ -646,7 +646,7 @@ var handlers = {
if (format.hasMonth) {
this.showView(VIEWS.MONTHS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.addClass(options.pickedClass).data('view', 'year picked').siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'year');
this.hideView();
}

Expand Down Expand Up @@ -682,7 +682,7 @@ var handlers = {
if (format.hasDay) {
this.showView(VIEWS.DAYS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'month');
this.hideView();
}

Expand All @@ -702,7 +702,7 @@ var handlers = {
if (format.hasDay) {
this.showView(VIEWS.DAYS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.addClass(options.pickedClass).data('view', 'month picked').siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'month');
this.hideView();
}

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.7
* Datepicker v1.0.8
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-02-19T12:18:01.828Z
* Date: 2019-06-23T08:07:37.208Z
*/

.datepicker-container {
Expand Down
12 changes: 6 additions & 6 deletions dist/datepicker.esm.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.7
* Datepicker v1.0.8
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-02-19T12:18:04.827Z
* Date: 2019-06-23T08:07:40.545Z
*/

import $ from 'jquery';
Expand Down Expand Up @@ -624,7 +624,7 @@ var handlers = {
if (format.hasMonth) {
this.showView(VIEWS.MONTHS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'year');
this.hideView();
}

Expand All @@ -642,7 +642,7 @@ var handlers = {
if (format.hasMonth) {
this.showView(VIEWS.MONTHS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.addClass(options.pickedClass).data('view', 'year picked').siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'year');
this.hideView();
}

Expand Down Expand Up @@ -678,7 +678,7 @@ var handlers = {
if (format.hasDay) {
this.showView(VIEWS.DAYS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'month');
this.hideView();
}

Expand All @@ -698,7 +698,7 @@ var handlers = {
if (format.hasDay) {
this.showView(VIEWS.DAYS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.addClass(options.pickedClass).data('view', 'month picked').siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'month');
this.hideView();
}

Expand Down
12 changes: 6 additions & 6 deletions dist/datepicker.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.7
* Datepicker v1.0.8
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-02-19T12:18:04.827Z
* Date: 2019-06-23T08:07:40.545Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -630,7 +630,7 @@
if (format.hasMonth) {
this.showView(VIEWS.MONTHS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'year');
this.hideView();
}

Expand All @@ -648,7 +648,7 @@
if (format.hasMonth) {
this.showView(VIEWS.MONTHS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.addClass(options.pickedClass).data('view', 'year picked').siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'year');
this.hideView();
}

Expand Down Expand Up @@ -684,7 +684,7 @@
if (format.hasDay) {
this.showView(VIEWS.DAYS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'month');
this.hideView();
}

Expand All @@ -704,7 +704,7 @@
if (format.hasDay) {
this.showView(VIEWS.DAYS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.addClass(options.pickedClass).data('view', 'month picked').siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'month');
this.hideView();
}

Expand Down
4 changes: 2 additions & 2 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.7
* Datepicker v1.0.8
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-02-19T12:18:01.828Z
* Date: 2019-06-23T08:07:37.208Z
*/

.datepicker-container {
Expand Down
6 changes: 4 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<div class="container">
<div class="row">
<div class="col-md">
<h1>Datepicker <small class="h6">v1.0.7</small></h1>
<h1>Datepicker <small class="h6">v1.0.8</small></h1>
<p class="lead">A simple jQuery datepicker plugin.</p>
</div>
<div class="col-md">
Expand Down Expand Up @@ -148,6 +148,7 @@ <h3 class="page-header">Options</h3>
<option value="pl-PL">pl-PL</option>
<option value="pt-BR">pt-BR</option>
<option value="ru-RU">ru-RU</option>
<option value="si-LK">si-LK</option>
<option value="sk-SK">sk-SK</option>
<option value="sv-SE">sv-SE</option>
<option value="th-TH">th-TH</option>
Expand Down Expand Up @@ -320,7 +321,7 @@ <h3 class="page-header">Methods</h3>
</footer>

<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"></script>
<script src="https://stackpath.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>
Expand Down Expand Up @@ -348,6 +349,7 @@ <h3 class="page-header">Methods</h3>
<script src="js/datepicker.pl-PL.js"></script>
<script src="js/datepicker.pt-BR.js"></script>
<script src="js/datepicker.ru-RU.js"></script>
<script src="js/datepicker.si-LK.js"></script>
<script src="js/datepicker.sk-SK.js"></script>
<script src="js/datepicker.sv-SE.js"></script>
<script src="js/datepicker.th-TH.js"></script>
Expand Down
12 changes: 6 additions & 6 deletions docs/js/datepicker.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.7
* Datepicker v1.0.8
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-02-19T12:18:04.827Z
* Date: 2019-06-23T08:07:40.545Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -630,7 +630,7 @@
if (format.hasMonth) {
this.showView(VIEWS.MONTHS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'year');
this.hideView();
}

Expand All @@ -648,7 +648,7 @@
if (format.hasMonth) {
this.showView(VIEWS.MONTHS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.addClass(options.pickedClass).data('view', 'year picked').siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'year');
this.hideView();
}

Expand Down Expand Up @@ -684,7 +684,7 @@
if (format.hasDay) {
this.showView(VIEWS.DAYS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'month');
this.hideView();
}

Expand All @@ -704,7 +704,7 @@
if (format.hasDay) {
this.showView(VIEWS.DAYS);
} else {
$target.addClass(options.pickedClass).siblings().removeClass(options.pickedClass);
$target.addClass(options.pickedClass).data('view', 'month picked').siblings(".".concat(options.pickedClass)).removeClass(options.pickedClass).data('view', 'month');
this.hideView();
}

Expand Down
17 changes: 17 additions & 0 deletions docs/js/datepicker.si-LK.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
(factory(global.jQuery));
}(this, (function ($) {
'use strict';

$.fn.datepicker.languages['si-LK'] = {
format: 'yyyy/mm/dd',
days: ['ඉරිදා', 'සදුදා', 'අගහරුවදා', 'බදාදා', 'බ්‍රහස්පතින්දා', 'සිකුරාදා', 'සෙනසුරාදා'],
daysShort: ['ඉරිදා', 'සදුදා', 'අග', 'බදාදා', 'බ්‍රහස්', 'සිකු', 'සෙන'],
daysMin: ['ඉරිදා', 'සදුදා', 'අග', 'බදාදා', 'බ්‍රහස්', 'සිකු', 'සෙන'],
weekStart: 1,
months: ['ජනවාරි', 'පෙබරවාරි', 'මාර්තු', 'අප්‍රේල්', 'මැයි', 'ජුනි', 'ජූලි', 'අගෝස්තු', 'සැප්තැම්බර්', 'ඔක්තෝබර්', 'නොවැම්බර්', 'දෙසැම්බර්'],
monthsShort: ['ජන', 'පෙබ', 'මාර්තු', 'අප්‍රේල්', 'මැයි', 'ජුනි', 'ජූලි', 'අගෝ', 'සැප්', 'ඔක්', 'නොවැ', 'දෙසැ']
};
})));
Loading

0 comments on commit 739d671

Please sign in to comment.