xdan-datetimepicker-rails 2.3.5 → 2.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b412ee3c3215cf4bc598f36de9221a6c7a05680d
4
- data.tar.gz: abd8d1bf750ee8e99a425af839b3031f6fd0e7ea
3
+ metadata.gz: 6e80a7c479461ff7b1deaa456836a1a8ee3072da
4
+ data.tar.gz: e1f5e7ca4306df135561b61dcdf0b68affa6c972
5
5
  SHA512:
6
- metadata.gz: 662e8711e5d6607a09fcc7117c913512acc60634ff6345c1539267207b11928fd821b786ab4f09ac426fd36407a412f34104486aca99c63c364006e4f2a6d903
7
- data.tar.gz: 5ffd4b986584e9309788c1868040c5f49e08449f9a92fa250ed732b2f3a063df494a8328c284ebe021c732086f67bcf8b04a15726ca245f958727884d9e020f5
6
+ metadata.gz: 23c907cb28f8365251944a330e9c371d4b40a6656053e48867564ac20e41f3c6d67ff5b5a23597bdb773dbdde3ab0545379c7ffe36cb27036e09a2019d0a5b11
7
+ data.tar.gz: 88cd448534b5ef27ad93c2d05d4d1f24c9e50e8cd6104a08f1c5720ad93ad93697e6981d0a118bbf9061610437918250681f3e13bc67f69b5c7ca4f8968a0c80
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @preserve jQuery DateTimePicker plugin v2.3.5
2
+ * @preserve jQuery DateTimePicker plugin v2.3.6
3
3
  * @homepage http://xdsoft.net/jqplugins/datetimepicker/
4
4
  * (c) 2014, Chupurnov Valeriy.
5
5
  */
@@ -249,7 +249,7 @@
249
249
 
250
250
  timepicker:true,
251
251
  datepicker:true,
252
- weeks:true,
252
+ weeks:false,
253
253
 
254
254
  defaultTime:false, // use formatTime format (ex. '10:00' for formatTime: 'H:i')
255
255
  defaultDate:false, // use formatDate format (ex new Date() or '1986/12/08' or '-1970/01/05' or '-1970/01/05')
@@ -288,8 +288,8 @@
288
288
  timeHeightInTimePicker:25,
289
289
  timepickerScrollbar:true,
290
290
 
291
- todayButton:true, // 2.1.0
292
- defaultSelect:true, // 2.1.0
291
+ todayButton:true,
292
+ defaultSelect:true,
293
293
 
294
294
  scrollMonth:true,
295
295
  scrollTime:true,
@@ -495,8 +495,7 @@
495
495
  scroller = $('<div class="xdsoft_scroller"></div>'),
496
496
  monthselect =$('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),
497
497
  yearselect =$('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>');
498
-
499
- //constructor lego
498
+
500
499
  mounth_picker
501
500
  .find('.xdsoft_month span')
502
501
  .after(monthselect);
@@ -558,8 +557,6 @@
558
557
  }
559
558
  });
560
559
 
561
-
562
- // set options
563
560
  datetimepicker.setOptions = function( _options ) {
564
561
  options = $.extend(true,{},options,_options);
565
562
 
@@ -839,7 +836,6 @@
839
836
 
840
837
  _this.currentTime.setDate(
841
838
  Math.min(
842
- // Day 0 is the last day in the previous month, but we want to know the number of days in the current month, so we need to evaluate the subsequent month (month+1)
843
839
  new Date(_this.currentTime.getFullYear(), month+1, 0).getDate(),
844
840
  _this.currentTime.getDate()
845
841
  )
@@ -863,7 +859,6 @@
863
859
  }
864
860
  _this.currentTime.setDate(
865
861
  Math.min(
866
- // Day 0 is the last day in the previous month, but we want to know the number of days in the current month, so we need to evaluate the subsequent month (month+1)
867
862
  new Date(_this.currentTime.getFullYear(), month+1, 0).getDate(),
868
863
  _this.currentTime.getDate()
869
864
  )
@@ -1003,14 +998,12 @@
1003
998
  while( start.getDay()!=options.dayOfWeekStart )
1004
999
  start.setDate(start.getDate()-1);
1005
1000
 
1006
- //generate calendar
1007
1001
  table+='<table><thead><tr>';
1008
1002
 
1009
1003
  if(options.weeks) {
1010
1004
  table+='<th></th>';
1011
1005
  }
1012
1006
 
1013
- // days
1014
1007
  for(var j = 0; j<7; j++) {
1015
1008
  table+='<th>'+options.i18n[options.lang].dayOfWeek[(j+options.dayOfWeekStart)%7]+'</th>';
1016
1009
  }
@@ -1228,7 +1221,7 @@
1228
1221
 
1229
1222
  timebox
1230
1223
  .on('click.xdsoft', 'div', function (xdevent) {
1231
- xdevent.stopPropagation(); // NAJ: Prevents closing of Pop-ups, Modals and Flyouts
1224
+ xdevent.stopPropagation();
1232
1225
  var $this = $(this),
1233
1226
  currentTime = _xdsoft_datetime.currentTime;
1234
1227
 
@@ -1303,7 +1296,7 @@
1303
1296
  }
1304
1297
  })
1305
1298
  .on( 'click.xdsoft', function( xdevent ) {
1306
- xdevent.stopPropagation(); // Prevents closing of Pop-ups, Modals and Flyouts in Bootstrap
1299
+ xdevent.stopPropagation();
1307
1300
  });
1308
1301
 
1309
1302
  var current_time_index = 0;
@@ -1416,7 +1409,7 @@
1416
1409
 
1417
1410
  return ct?ct:0;
1418
1411
  }
1419
- //debugger
1412
+
1420
1413
  _xdsoft_datetime.setCurrentTime( getCurrentValue() );
1421
1414
 
1422
1415
  input
@@ -87,7 +87,7 @@
87
87
  .xdsoft_datetimepicker .xdsoft_prev,
88
88
  .xdsoft_datetimepicker .xdsoft_next,
89
89
  .xdsoft_datetimepicker .xdsoft_today_button{
90
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdX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6XBiCxcJQWmZZb8THFilfy/lfrTvLghq2TqTHrRMTKNJ0sIhdo15RT+RpyWwFdY96UZ/LdQKBGjcXpcc1AlSFEfLmouD+1knuxBDUVrvOBmoOC/rEcN7OQxKVeJTCiAdUzUJhA2Oez9QTkp72OTVcxDcXY8iKNkxGAJXmJCOQwOa6dhyXsOa6XwEGAKdeb5ET3rQdAAAAAElFTkSuQmCC);
91
91
  }
92
92
 
93
93
  .xdsoft_datetimepicker .xdsoft_label i{
@@ -113,8 +113,7 @@ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYA
113
113
  float: right;
114
114
  background-position:0px 0px;
115
115
  }
116
- .xdsoft_datetimepicker .xdsoft_next:active,.xdsoft_datetimepicker .xdsoft_prev:active{
117
- }
116
+
118
117
  .xdsoft_datetimepicker .xdsoft_next,
119
118
  .xdsoft_datetimepicker .xdsoft_prev ,
120
119
  .xdsoft_datetimepicker .xdsoft_today_button{
@@ -368,11 +367,11 @@ position:relative;
368
367
  color:#000;
369
368
  }
370
369
 
371
-
370
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_label i,
372
371
  .xdsoft_datetimepicker.xdsoft_dark .xdsoft_prev,
373
372
  .xdsoft_datetimepicker.xdsoft_dark .xdsoft_next,
374
373
  .xdsoft_datetimepicker.xdsoft_dark .xdsoft_today_button{
375
- background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAeCAYAAACsYQl4AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gkRDgsOD4dcsgAAAhBJREFUaN7tmrFOHDEQhmcAnRQCTSQaXilAD/cEVyBIUqTiEYzMO/AAIHrKNDRICDokJGjpaBKFfGkMMsvu7a7t5TDySNbdeb2j8bfe32P7FJBiw9tcQVBAF9DF+ttC7h1Q1dp6wIjIvKruNlwvoGPNQf7+BLQJdpGORJCd7QC2gB4W8vuBDbQVE3HvVC0EbFc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mvFr1KVm/AJ10tRe2XnraNqaJvKE3KHuUbfK1E+VHB0q40/y3sdQSxY4FHWeKJCunP8UyDdqJZenT3ntVV5jIYCAh20vT7ioP8tpf6E2lfEMwERe+whV1MHjwZB7PBiCxcGQWwKZKD62lfGNnP/1poFAA60T7rF1UgcKd2id3KDeUS+oLWV8DfWAepOfq00CgQabi9zjcgJVYVD7PVzQUAUGAQkbNJTBICDhgwYTjDYD6XeW08ZKh+A4pYkzenOxXUbvZcWz7E8ykRMnIHGX1XPl+1m2vPYpL+2qdb8CDAARlKFEz/ZVkAAAAABJRU5ErkJggg==);
376
375
  }
377
376
 
378
377
  .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td,
@@ -1,3 +1,3 @@
1
1
  module XdanDatetimepickerRails
2
- VERSION = '2.3.5'
2
+ VERSION = '2.3.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xdan-datetimepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.5
4
+ version: 2.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Kovach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-24 00:00:00.000000000 Z
11
+ date: 2014-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails