jquery-datetimepicker-rails 2.0.8.0 → 2.0.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: b6906eae163239f9fd7e1b8c5d9af7b879e5db37
|
4
|
+
data.tar.gz: dfc1e87ef79d0a31771d50324c4be3a101f98fd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab58649b83c1e876fd7b6d31c89393557f41d109c614021d78d400e7ea52a70bbdef87eee25ff93418e8e438ab96265778100bd26bdca464c8e510ff94d1e3fd
|
7
|
+
data.tar.gz: 34c295abbe4f2c73f2e58a9ced89de5b0e33d072ff8f41eee18d33ec3a6c3574de832f35fed27dafd5a44e72a672dc78227c08c8a875101551f5233522ca5ede
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @preserve jQuery DateTimePicker plugin v2.0.
|
2
|
+
* @preserve jQuery DateTimePicker plugin v2.0.9
|
3
3
|
* @homepage http://xdsoft.net/jqplugins/datetimepicker/
|
4
4
|
* (c) 2013, Chupurnov Valeriy.
|
5
5
|
*/
|
@@ -730,19 +730,22 @@
|
|
730
730
|
timeboxparent.trigger('scroll_element.xdsoft_scroller',[parseInt(top)/(height-pheight)]);
|
731
731
|
}
|
732
732
|
});
|
733
|
+
var timerclick = 0;
|
733
734
|
calendar
|
734
|
-
.on('
|
735
|
+
.on('click.xdsoft','td',function() {
|
736
|
+
timerclick++;
|
735
737
|
var $this = $(this),
|
736
738
|
currentTime = _xdsoft_datetime.currentTime;
|
737
739
|
if( $this.hasClass('xdsoft_disabled') )
|
738
740
|
return false;
|
741
|
+
|
739
742
|
currentTime.setFullYear( $this.data('year') );
|
740
743
|
currentTime.setMonth( $this.data('month') );
|
741
744
|
currentTime.setDate( $this.data('date') );
|
742
745
|
datetimepicker.trigger('select.xdsoft',[currentTime]);
|
743
746
|
|
744
747
|
input.val( _xdsoft_datetime.str() );
|
745
|
-
if( (options.closeOnDateSelect===true||( options.closeOnDateSelect===0&&!options.timepicker ))&&!options.inline ) {
|
748
|
+
if( (timerclick>1||(options.closeOnDateSelect===true||( options.closeOnDateSelect===0&&!options.timepicker )))&&!options.inline ) {
|
746
749
|
datetimepicker.trigger('close.xdsoft');
|
747
750
|
}
|
748
751
|
|
@@ -752,10 +755,13 @@
|
|
752
755
|
|
753
756
|
datetimepicker.trigger('xchange.xdsoft');
|
754
757
|
datetimepicker.trigger('changedatetime.xdsoft');
|
755
|
-
|
758
|
+
setTimeout(function(){
|
759
|
+
timerclick = 0;
|
760
|
+
},200);
|
761
|
+
});
|
756
762
|
|
757
763
|
timebox
|
758
|
-
.on('
|
764
|
+
.on('click.xdsoft','div',function() {
|
759
765
|
var $this = $(this),
|
760
766
|
currentTime = _xdsoft_datetime.currentTime;
|
761
767
|
if( $this.hasClass('xdsoft_disabled') )
|
@@ -59,6 +59,7 @@
|
|
59
59
|
}
|
60
60
|
.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{
|
61
61
|
margin-top:8px;
|
62
|
+
margin-bottom:3px
|
62
63
|
}
|
63
64
|
.xdsoft_datetimepicker .xdsoft_mounthpicker{
|
64
65
|
position: relative;
|
@@ -214,6 +215,9 @@
|
|
214
215
|
cursor:pointer;
|
215
216
|
height: 25px;
|
216
217
|
}
|
218
|
+
.xdsoft_datetimepicker .xdsoft_calendar th{
|
219
|
+
background: #F1F1F1;
|
220
|
+
}
|
217
221
|
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today{
|
218
222
|
color:#33AAFF;
|
219
223
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-datetimepicker-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.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: 2013-12-
|
11
|
+
date: 2013-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|