jquery-datetimepicker-rails 2.1.8.0 → 2.1.9.0
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: 309e6b365fcc8d92c5ea9ba3b8bac71054a61829
|
4
|
+
data.tar.gz: c153c56c5b1538a2ed748bbecd509542f699d34d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f51af4afc71fb2cc384917d0fd559652169e55c377f4930a7cee50d4855e3dca5a965bc28573963c26e66d07010255e8068766ca45822cc9f0b774d8225edb1
|
7
|
+
data.tar.gz: af4fc97eff0a8e17ffef10e34e7b623e7d8302fb592b6ad3c54ec187fb691f2257a33e7c1c07560d46c9de9848f49d1608a909b97f3ec47b0be045c5dc8c2bc2
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @preserve jQuery DateTimePicker plugin v2.1.
|
2
|
+
* @preserve jQuery DateTimePicker plugin v2.1.9
|
3
3
|
* @homepage http://xdsoft.net/jqplugins/datetimepicker/
|
4
4
|
* (c) 2014, Chupurnov Valeriy.
|
5
5
|
*/
|
@@ -78,6 +78,30 @@
|
|
78
78
|
dayOfWeek: [
|
79
79
|
"nd", "pn", "wt", "śr", "cz", "pt", "sb"
|
80
80
|
]
|
81
|
+
},
|
82
|
+
pt:{ // Portuguese
|
83
|
+
months: [
|
84
|
+
"Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"
|
85
|
+
],
|
86
|
+
dayOfWeek: [
|
87
|
+
"Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"
|
88
|
+
]
|
89
|
+
},
|
90
|
+
ch:{ // Simplified Chinese
|
91
|
+
months: [
|
92
|
+
"一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"
|
93
|
+
],
|
94
|
+
dayOfWeek: [
|
95
|
+
"日", "一","二","三","四","五","六"
|
96
|
+
]
|
97
|
+
},
|
98
|
+
se:{ // Swedish
|
99
|
+
months: [
|
100
|
+
"Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September","Oktober", "November", "December"
|
101
|
+
],
|
102
|
+
dayOfWeek: [
|
103
|
+
"Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör"
|
104
|
+
]
|
81
105
|
}
|
82
106
|
},
|
83
107
|
value:'',
|
@@ -257,7 +281,7 @@
|
|
257
281
|
ZKEY = 90,
|
258
282
|
YKEY = 89,
|
259
283
|
ctrlDown = false,
|
260
|
-
options = ($.isPlainObject(opt)||!opt)?$.extend({},default_options,opt):$.extend({},default_options),
|
284
|
+
options = ($.isPlainObject(opt)||!opt)?$.extend(true,{},default_options,opt):$.extend({},default_options),
|
261
285
|
createDateTimePicker = function( input ) {
|
262
286
|
var datetimepicker = $('<div '+(options.id?'id="'+options.id+'"':'')+' '+(options.style?'style="'+options.style+'"':'')+' class="xdsoft_datetimepicker xdsoft_noselect '+options.className+'"></div>'),
|
263
287
|
xdsoft_copyright = $('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),
|
@@ -323,7 +347,7 @@
|
|
323
347
|
|
324
348
|
// set options
|
325
349
|
datetimepicker.setOptions = function( _options ) {
|
326
|
-
options = $.extend({},options,_options);
|
350
|
+
options = $.extend(true,{},options,_options);
|
327
351
|
if( (options.open||options.opened)&&(!options.inline) ) {
|
328
352
|
input.trigger('open.xdsoft');
|
329
353
|
}
|
@@ -560,6 +584,12 @@
|
|
560
584
|
_this.currentTime.setFullYear(_this.currentTime.getFullYear()+1);
|
561
585
|
month = 0;
|
562
586
|
}
|
587
|
+
_this.currentTime.setDate(
|
588
|
+
Math.min(
|
589
|
+
Date.daysInMonth[month],
|
590
|
+
_this.currentTime.getDate()
|
591
|
+
)
|
592
|
+
)
|
563
593
|
_this.currentTime.setMonth(month);
|
564
594
|
options.onChangeMonth&&options.onChangeMonth.call&&options.onChangeMonth.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'));
|
565
595
|
datetimepicker.trigger('xchange.xdsoft');
|
@@ -572,6 +602,12 @@
|
|
572
602
|
_this.currentTime.setFullYear(_this.currentTime.getFullYear()-1);
|
573
603
|
month = 11;
|
574
604
|
}
|
605
|
+
_this.currentTime.setDate(
|
606
|
+
Math.min(
|
607
|
+
Date.daysInMonth[month],
|
608
|
+
_this.currentTime.getDate()
|
609
|
+
)
|
610
|
+
)
|
575
611
|
_this.currentTime.setMonth(month);
|
576
612
|
options.onChangeMonth&&options.onChangeMonth.call&&options.onChangeMonth.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'));
|
577
613
|
datetimepicker.trigger('xchange.xdsoft');
|
@@ -814,8 +850,8 @@
|
|
814
850
|
return false;
|
815
851
|
|
816
852
|
currentTime.setFullYear( $this.data('year') );
|
817
|
-
currentTime.setMonth( $this.data('month') );
|
818
853
|
currentTime.setDate( $this.data('date') );
|
854
|
+
currentTime.setMonth( $this.data('month') );
|
819
855
|
datetimepicker.trigger('select.xdsoft',[currentTime]);
|
820
856
|
|
821
857
|
input.val( _xdsoft_datetime.str() );
|
@@ -915,7 +951,7 @@
|
|
915
951
|
});
|
916
952
|
var setPos = function() {
|
917
953
|
var offset = datetimepicker.data('input').offset(), top = offset.top+datetimepicker.data('input')[0].offsetHeight-1, left = offset.left;
|
918
|
-
if( top+datetimepicker[0].offsetHeight>$(window).height() )
|
954
|
+
if( top+datetimepicker[0].offsetHeight>$(window).height()+$(window).scrollTop() )
|
919
955
|
top = offset.top-datetimepicker[0].offsetHeight+1;
|
920
956
|
if( left+datetimepicker[0].offsetWidth>$(window).width() )
|
921
957
|
left = offset.left-datetimepicker[0].offsetWidth+datetimepicker.data('input')[0].offsetWidth;
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-datetimepicker-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Novikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: A date and time picker for jQuery and Rails
|
@@ -45,7 +45,7 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
48
|
+
- ".gitignore"
|
49
49
|
- Gemfile
|
50
50
|
- LICENSE.txt
|
51
51
|
- README.md
|
@@ -66,17 +66,17 @@ require_paths:
|
|
66
66
|
- lib
|
67
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- -
|
69
|
+
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '0'
|
72
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.
|
79
|
+
rubygems_version: 2.2.1
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: This gem packages the datetimepicker jQuery plugin for Rails 3.1+ asset pipeline
|