bootstrap-datepicker-rails 1.1.1.5 → 1.1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b65617b7e9f799dc545a00aa7f5cd19d693fdd42
|
4
|
+
data.tar.gz: e878a1c3ef548dac687dd9b0c4e79f758b581c64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76cf940528f5ebbb0eceaf55b0ca237bae5033cb19b8d7c6124fe1fb8f912a6d8c3bcd25b1bf5a5ced2342dc772db4cb9b93f5c82ce05179624e032b2aad880a
|
7
|
+
data.tar.gz: 52e63843c74a78836020c5d929f60755d0d860bbcd4c9229dbaaf8717af23703787348cdf282f9af47f7a8f01178196a7305ec2777276c71bd715fe2aeba8632
|
@@ -378,10 +378,10 @@
|
|
378
378
|
var formatted = this.getFormattedDate();
|
379
379
|
if (!this.isInput) {
|
380
380
|
if (this.component){
|
381
|
-
this.element.find('input').val(formatted);
|
381
|
+
this.element.find('input').val(formatted).change();
|
382
382
|
}
|
383
383
|
} else {
|
384
|
-
this.element.val(formatted);
|
384
|
+
this.element.val(formatted).change();
|
385
385
|
}
|
386
386
|
},
|
387
387
|
|
@@ -477,7 +477,8 @@
|
|
477
477
|
update: function(){
|
478
478
|
if (!this._allow_update) return;
|
479
479
|
|
480
|
-
var
|
480
|
+
var oldDate = new Date(this.date),
|
481
|
+
date, fromArgs = false;
|
481
482
|
if(arguments && arguments.length && (typeof arguments[0] === 'string' || arguments[0] instanceof Date)) {
|
482
483
|
date = arguments[0];
|
483
484
|
if (date instanceof Date)
|
@@ -490,7 +491,17 @@
|
|
490
491
|
|
491
492
|
this.date = DPGlobal.parseDate(date, this.o.format, this.o.language);
|
492
493
|
|
493
|
-
if(fromArgs)
|
494
|
+
if (fromArgs) {
|
495
|
+
// setting date by clicking
|
496
|
+
this.setValue();
|
497
|
+
} else if (date) {
|
498
|
+
// setting date by typing
|
499
|
+
if (oldDate.getTime() !== this.date.getTime())
|
500
|
+
this._trigger('changeDate');
|
501
|
+
} else {
|
502
|
+
// clearing date
|
503
|
+
this._trigger('clearDate');
|
504
|
+
}
|
494
505
|
|
495
506
|
if (this.date < this.o.startDate) {
|
496
507
|
this.viewDate = new Date(this.o.startDate);
|
@@ -1,15 +1,16 @@
|
|
1
1
|
/**
|
2
2
|
* Traditional Chinese translation for bootstrap-datepicker
|
3
3
|
* Rung-Sheng Jang <daniel@i-trend.co.cc>
|
4
|
+
* FrankWu <frankwu100@gmail.com> Fix more appropriate use of Traditional Chinese habit
|
4
5
|
*/
|
5
6
|
;(function($){
|
6
7
|
$.fn.datepicker.dates['zh-TW'] = {
|
7
8
|
days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"],
|
8
|
-
daysShort: ["
|
9
|
+
daysShort: ["週日", "週一", "週二", "週三", "週四", "週五", "週六", "週日"],
|
9
10
|
daysMin: ["日", "一", "二", "三", "四", "五", "六", "日"],
|
10
11
|
months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
11
12
|
monthsShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
12
|
-
today: "
|
13
|
+
today: "今天",
|
13
14
|
format: "yyyy年mm月dd日",
|
14
15
|
weekStart: 1
|
15
16
|
};
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-datepicker-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.1.
|
4
|
+
version: 1.1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gonzalo Rodríguez-Baltanás Díaz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|