xdan-datetimepicker-rails 2.3.4 → 2.3.5

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: 29ec64530b7bac0045e3e4c0a0fddc7d25358d0e
4
- data.tar.gz: cbd9033f1892dd72d540c7dce05a6f98f73a2bc8
3
+ metadata.gz: b412ee3c3215cf4bc598f36de9221a6c7a05680d
4
+ data.tar.gz: abd8d1bf750ee8e99a425af839b3031f6fd0e7ea
5
5
  SHA512:
6
- metadata.gz: e366b50cb8b098ac05a2f0d0f997096662e8bf4b30f12b5ac03d30310e51f29a9f6fde423d50bb886d6db6ca783353e4b92d0b963e05937d3b93c590ced8b9c1
7
- data.tar.gz: 738f690bb19b198fe6220b10e3ca68f7491a098222ecd850c69df0cc1b271f591b9f50bb7681083410cf5a6cea4c2402312cd5f19fe0de2f90741b1454a1b8d3
6
+ metadata.gz: 662e8711e5d6607a09fcc7117c913512acc60634ff6345c1539267207b11928fd821b786ab4f09ac426fd36407a412f34104486aca99c63c364006e4f2a6d903
7
+ data.tar.gz: 5ffd4b986584e9309788c1868040c5f49e08449f9a92fa250ed732b2f3a063df494a8328c284ebe021c732086f67bcf8b04a15726ca245f958727884d9e020f5
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @preserve jQuery DateTimePicker plugin v2.3.4
2
+ * @preserve jQuery DateTimePicker plugin v2.3.5
3
3
  * @homepage http://xdsoft.net/jqplugins/datetimepicker/
4
4
  * (c) 2014, Chupurnov Valeriy.
5
5
  */
@@ -7,6 +7,30 @@
7
7
  'use strict';
8
8
  var default_options = {
9
9
  i18n:{
10
+ ar: { // Arabic
11
+ months: [
12
+ "كانون الثاني", "شباط", "آذار", "نيسان", "مايو", "حزيران", "تموز", "آب", "أيلول", "تشرين الأول", "تشرين الثاني", "كانون الأول"
13
+ ],
14
+ dayOfWeek: [
15
+ "ن", "ث", "ع", "خ", "ج", "س", "ح"
16
+ ]
17
+ },
18
+ ro: { // Romanian
19
+ months: [
20
+ "ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie"
21
+ ],
22
+ dayOfWeek: [
23
+ "l", "ma", "mi", "j", "v", "s", "d"
24
+ ]
25
+ },
26
+ id: { // Indonesian
27
+ months: [
28
+ "Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"
29
+ ],
30
+ dayOfWeek: [
31
+ "Sen", "Sel", "Rab", "Kam", "Jum", "Sab", "Min"
32
+ ]
33
+ },
10
34
  bg:{ // Bulgarian
11
35
  months:[
12
36
  "Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември"
@@ -225,7 +249,7 @@
225
249
 
226
250
  timepicker:true,
227
251
  datepicker:true,
228
- weeks:false,
252
+ weeks:true,
229
253
 
230
254
  defaultTime:false, // use formatTime format (ex. '10:00' for formatTime: 'H:i')
231
255
  defaultDate:false, // use formatDate format (ex new Date() or '1986/12/08' or '-1970/01/05' or '-1970/01/05')
@@ -240,9 +264,12 @@
240
264
  initTime:true,
241
265
  inline:false,
242
266
 
267
+ theme:'',
268
+
243
269
  onSelectDate:function() {},
244
270
  onSelectTime:function() {},
245
271
  onChangeMonth:function() {},
272
+ onChangeYear:function() {},
246
273
  onChangeDateTime:function() {},
247
274
  onShow:function() {},
248
275
  onClose:function() {},
@@ -255,6 +282,8 @@
255
282
  next: 'xdsoft_next',
256
283
  prev : 'xdsoft_prev',
257
284
  dayOfWeekStart:0,
285
+
286
+ parentID: 'body',
258
287
 
259
288
  timeHeightInTimePicker:25,
260
289
  timepickerScrollbar:true,
@@ -358,7 +387,9 @@
358
387
  timeboxparent.trigger('resize_scroll.xdsoft_scroller',[percent,true]);
359
388
  percent = percent>1?1:(percent<0||isNaN(percent))?0:percent;
360
389
  scroller.css('margin-top',maximumOffset*percent);
361
- timebox.css('marginTop',-parseInt((height-parentHeight)*percent))
390
+ setTimeout(function(){
391
+ timebox.css('marginTop',-parseInt((timebox[0].offsetHeight-parentHeight)*percent))
392
+ },10);
362
393
  })
363
394
  .on('resize_scroll.xdsoft_scroller',function( event,_percent,noTriggerScroll ) {
364
395
  parentHeight = timeboxparent[0].clientHeight;
@@ -422,7 +453,7 @@
422
453
  ZKEY = 90,
423
454
  YKEY = 89,
424
455
  ctrlDown = false,
425
- options = ($.isPlainObject(opt)||!opt)?$.extend(true,{},default_options,opt):$.extend({},default_options),
456
+ options = ($.isPlainObject(opt)||!opt)?$.extend(true,{},default_options,opt):$.extend(true,{},default_options),
426
457
 
427
458
  lazyInitTimer = 0,
428
459
 
@@ -449,10 +480,13 @@
449
480
 
450
481
  createDateTimePicker = function( input ) {
451
482
 
452
- var datetimepicker = $('<div '+(options.id?'id="'+options.id+'"':'')+' '+(options.style?'style="'+options.style+'"':'')+' class="xdsoft_datetimepicker xdsoft_noselect '+(options.weeks?' xdsoft_showweeks':'')+options.className+'"></div>'),
483
+ var datetimepicker = $('<div '+(options.id?'id="'+options.id+'"':'')+' '+(options.style?'style="'+options.style+'"':'')+' class="xdsoft_datetimepicker xdsoft_'+options.theme+' xdsoft_noselect '+(options.weeks?' xdsoft_showweeks':'')+options.className+'"></div>'),
453
484
  xdsoft_copyright = $('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),
454
485
  datepicker = $('<div class="xdsoft_datepicker active"></div>'),
455
- mounth_picker = $('<div class="xdsoft_mounthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span></div><div class="xdsoft_label xdsoft_year"><span></span></div><button type="button" class="xdsoft_next"></button></div>'),
486
+ mounth_picker = $('<div class="xdsoft_mounthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button>'+
487
+ '<div class="xdsoft_label xdsoft_month"><span></span><i></i></div>'+
488
+ '<div class="xdsoft_label xdsoft_year"><span></span><i></i></div>'+
489
+ '<button type="button" class="xdsoft_next"></button></div>'),
456
490
  calendar = $('<div class="xdsoft_calendar"></div>'),
457
491
  timepicker = $('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),
458
492
  timeboxparent = timepicker.find('.xdsoft_time_box').eq(0),
@@ -473,18 +507,22 @@
473
507
  mounth_picker
474
508
  .find('.xdsoft_month,.xdsoft_year')
475
509
  .on('mousedown.xdsoft',function(event) {
510
+ var select = $(this).find('.xdsoft_select').eq(0),
511
+ val = 0,
512
+ top = 0,
513
+ visible = select.is(':visible');
514
+
515
+
476
516
  mounth_picker
477
517
  .find('.xdsoft_select')
478
518
  .hide();
479
519
 
480
- var select = $(this).find('.xdsoft_select').eq(0),
481
- val = 0,
482
- top = 0;
520
+
483
521
 
484
522
  if( _xdsoft_datetime.currentTime )
485
523
  val = _xdsoft_datetime.currentTime[$(this).hasClass('xdsoft_month')?'getMonth':'getFullYear']();
486
524
 
487
- select.show();
525
+ select[visible?'hide':'show']();
488
526
 
489
527
  for(var items = select.find('div.xdsoft_option'),i = 0;i<items.length;i++) {
490
528
  if( items.eq(i).data('value')==val ) {
@@ -506,6 +544,7 @@
506
544
  event.preventDefault();
507
545
  })
508
546
  .on('mousedown.xdsoft','.xdsoft_option',function( event ) {
547
+ var year = _xdsoft_datetime.currentTime.getFullYear();
509
548
  if( _xdsoft_datetime&&_xdsoft_datetime.currentTime )
510
549
  _xdsoft_datetime.currentTime[$(this).parent().parent().hasClass('xdsoft_monthselect')?'setMonth':'setFullYear']($(this).data('value'));
511
550
 
@@ -513,6 +552,10 @@
513
552
 
514
553
  datetimepicker.trigger('xchange.xdsoft');
515
554
  options.onChangeMonth&&options.onChangeMonth.call&&options.onChangeMonth.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'));
555
+
556
+ if( year!=_xdsoft_datetime.currentTime.getFullYear() && $.isFunction(options.onChangeYear) ){
557
+ options.onChangeYear.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'));
558
+ }
516
559
  });
517
560
 
518
561
 
@@ -738,7 +781,8 @@
738
781
  .append(mounth_picker)
739
782
  .append(calendar);
740
783
 
741
- $('body').append(datetimepicker);
784
+ $(options.parentID)
785
+ .append(datetimepicker);
742
786
 
743
787
  var _xdsoft_datetime = new function() {
744
788
  var _this = this;
@@ -746,7 +790,7 @@
746
790
  var d = new Date();
747
791
 
748
792
  if( !norecursion && options.defaultDate ){
749
- var date = _this.strtodate(options.defaultDate);
793
+ var date = _this.strToDate(options.defaultDate);
750
794
  d.setFullYear( date.getFullYear() );
751
795
  d.setMonth( date.getMonth() );
752
796
  d.setDate( date.getDate() );
@@ -791,14 +835,22 @@
791
835
  _this.currentTime.setFullYear(_this.currentTime.getFullYear()+1);
792
836
  month = 0;
793
837
  }
838
+ var year = _this.currentTime.getFullYear();
839
+
794
840
  _this.currentTime.setDate(
795
841
  Math.min(
796
- Date.daysInMonth[month],
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
+ new Date(_this.currentTime.getFullYear(), month+1, 0).getDate(),
797
844
  _this.currentTime.getDate()
798
845
  )
799
846
  );
800
847
  _this.currentTime.setMonth(month);
801
848
  options.onChangeMonth&&options.onChangeMonth.call&&options.onChangeMonth.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'));
849
+
850
+ if( year!=_this.currentTime.getFullYear() && $.isFunction(options.onChangeYear) ){
851
+ options.onChangeYear.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'));
852
+ }
853
+
802
854
  datetimepicker.trigger('xchange.xdsoft');
803
855
  return month;
804
856
  };
@@ -811,7 +863,8 @@
811
863
  }
812
864
  _this.currentTime.setDate(
813
865
  Math.min(
814
- Date.daysInMonth[month],
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
+ new Date(_this.currentTime.getFullYear(), month+1, 0).getDate(),
815
868
  _this.currentTime.getDate()
816
869
  )
817
870
  );
@@ -820,7 +873,12 @@
820
873
  datetimepicker.trigger('xchange.xdsoft');
821
874
  return month;
822
875
  };
823
-
876
+
877
+ _this.getWeekOfYear = function( datetime ) {
878
+ var onejan = new Date( datetime.getFullYear(),0,1 );
879
+ return Math.ceil((((datetime - onejan) / 86400000) + onejan.getDay()+1)/7);
880
+ };
881
+
824
882
  _this.strToDateTime = function( sDateTime ) {
825
883
  if( sDateTime && sDateTime instanceof Date && _this.isValidDate(sDateTime) )
826
884
  return sDateTime;
@@ -839,7 +897,7 @@
839
897
  return currentTime;
840
898
  };
841
899
 
842
- _this.strtodate = function( sDate ) {
900
+ _this.strToDate = function( sDate ) {
843
901
  if( sDate && sDate instanceof Date && _this.isValidDate(sDate) )
844
902
  return sDate;
845
903
 
@@ -854,7 +912,7 @@
854
912
  if( sTime && sTime instanceof Date && _this.isValidDate(sTime) )
855
913
  return sTime;
856
914
 
857
- var currentTime = sTime?Date.parseDate(sTime, options.formatTime):_this.now();
915
+ var currentTime = sTime?Date.parseDate(sTime, options.formatTime):_this.now(true);
858
916
  if( !_this.isValidDate(currentTime) )
859
917
  currentTime = _this.now(true);
860
918
 
@@ -962,12 +1020,12 @@
962
1020
  var maxDate = false, minDate = false;
963
1021
 
964
1022
  if( options.maxDate!==false ) {
965
- maxDate = _xdsoft_datetime.strtodate(options.maxDate);
1023
+ maxDate = _xdsoft_datetime.strToDate(options.maxDate);
966
1024
  maxDate = new Date(maxDate.getFullYear(),maxDate.getMonth(),maxDate.getDate(),23,59,59,999);
967
1025
  }
968
1026
 
969
1027
  if( options.minDate!==false ) {
970
- minDate = _xdsoft_datetime.strtodate(options.minDate);
1028
+ minDate = _xdsoft_datetime.strToDate(options.minDate);
971
1029
  minDate = new Date(minDate.getFullYear(),minDate.getMonth(),minDate.getDate());
972
1030
  }
973
1031
 
@@ -977,7 +1035,10 @@
977
1035
  classes = [];
978
1036
  i++;
979
1037
 
980
- d = start.getDate(); y = start.getFullYear(); m = start.getMonth(); w = start.getWeekOfYear();
1038
+ d = start.getDate();
1039
+ y = start.getFullYear();
1040
+ m = start.getMonth();
1041
+ w = _xdsoft_datetime.getWeekOfYear(start);
981
1042
 
982
1043
  classes.push('xdsoft_date');
983
1044
 
@@ -1013,7 +1074,7 @@
1013
1074
  classes.push(options.beforeShowDay(start))
1014
1075
  }
1015
1076
 
1016
- if(newRow) {
1077
+ if( newRow ) {
1017
1078
  table+='<tr>';
1018
1079
  newRow = false;
1019
1080
 
@@ -1241,8 +1302,7 @@
1241
1302
  triggerAfterOpen = false;
1242
1303
  }
1243
1304
  })
1244
- .on( 'click.xdsoft', function( xdevent )
1245
- {
1305
+ .on( 'click.xdsoft', function( xdevent ) {
1246
1306
  xdevent.stopPropagation(); // Prevents closing of Pop-ups, Modals and Flyouts in Bootstrap
1247
1307
  });
1248
1308
 
@@ -1275,7 +1335,7 @@
1275
1335
  if (top < 0)
1276
1336
  top = 0;
1277
1337
  if( left+datetimepicker[0].offsetWidth>$(window).width() )
1278
- left = offset.left-datetimepicker[0].offsetWidth+datetimepicker.data('input')[0].offsetWidth;
1338
+ left = $(window).width()-datetimepicker[0].offsetWidth;
1279
1339
  }
1280
1340
  datetimepicker.css({
1281
1341
  left:left,
@@ -1306,6 +1366,12 @@
1306
1366
  })
1307
1367
  .on('close.xdsoft', function( event ) {
1308
1368
  var onClose = true;
1369
+
1370
+ mounth_picker
1371
+ .find('.xdsoft_month,.xdsoft_year')
1372
+ .find('.xdsoft_select')
1373
+ .hide();
1374
+
1309
1375
  if( options.onClose&&options.onClose.call ) {
1310
1376
  onClose=options.onClose.call(datetimepicker,_xdsoft_datetime.currentTime,datetimepicker.data('input'));
1311
1377
  }
@@ -1327,10 +1393,19 @@
1327
1393
  var ct = false;
1328
1394
 
1329
1395
  if ( options.startDate ) {
1330
- ct = _xdsoft_datetime.strToDateTime(options.startDate);
1396
+ ct = _xdsoft_datetime.strToDate(options.startDate);
1331
1397
  } else {
1332
1398
  ct = options.value?options.value:(input&&input.val&&input.val())?input.val():'';
1333
- ct = Date.parseDate(ct, options.format);
1399
+ if( ct ) {
1400
+ ct = _xdsoft_datetime.strToDateTime(ct);
1401
+ } else if ( options.defaultDate ) {
1402
+ ct = _xdsoft_datetime.strToDate(options.defaultDate);
1403
+ if( options.defaultTime ){
1404
+ var time = _xdsoft_datetime.strtotime(options.defaultTime);
1405
+ ct.setHours( time.getHours() );
1406
+ ct.setMinutes( time.getMinutes() );
1407
+ }
1408
+ }
1334
1409
  }
1335
1410
 
1336
1411
  if ( ct && _xdsoft_datetime.isValidDate(ct) ) {
@@ -1467,4 +1542,4 @@
1467
1542
  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
1468
1543
  * details.
1469
1544
  */
1470
- Date.parseFunctions={count:0};Date.parseRegexes=[];Date.formatFunctions={count:0};Date.prototype.dateFormat=function(b){if(b=="unixtime"){return parseInt(this.getTime()/1000);}if(Date.formatFunctions[b]==null){Date.createNewFormat(b);}var a=Date.formatFunctions[b];return this[a]();};Date.createNewFormat=function(format){var funcName="format"+Date.formatFunctions.count++;Date.formatFunctions[format]=funcName;var code="Date.prototype."+funcName+" = function() {return ";var special=false;var ch="";for(var i=0;i<format.length;++i){ch=format.charAt(i);if(!special&&ch=="\\"){special=true;}else{if(special){special=false;code+="'"+String.escape(ch)+"' + ";}else{code+=Date.getFormatCode(ch);}}}eval(code.substring(0,code.length-3)+";}");};Date.getFormatCode=function(a){switch(a){case"d":return"String.leftPad(this.getDate(), 2, '0') + ";case"D":return"Date.dayNames[this.getDay()].substring(0, 3) + ";case"j":return"this.getDate() + ";case"l":return"Date.dayNames[this.getDay()] + ";case"S":return"this.getSuffix() + ";case"w":return"this.getDay() + ";case"z":return"this.getDayOfYear() + ";case"W":return"this.getWeekOfYear() + ";case"F":return"Date.monthNames[this.getMonth()] + ";case"m":return"String.leftPad(this.getMonth() + 1, 2, '0') + ";case"M":return"Date.monthNames[this.getMonth()].substring(0, 3) + ";case"n":return"(this.getMonth() + 1) + ";case"t":return"this.getDaysInMonth() + ";case"L":return"(this.isLeapYear() ? 1 : 0) + ";case"Y":return"this.getFullYear() + ";case"y":return"('' + this.getFullYear()).substring(2, 4) + ";case"a":return"(this.getHours() < 12 ? 'am' : 'pm') + ";case"A":return"(this.getHours() < 12 ? 'AM' : 'PM') + ";case"g":return"((this.getHours() %12) ? this.getHours() % 12 : 12) + ";case"G":return"this.getHours() + ";case"h":return"String.leftPad((this.getHours() %12) ? this.getHours() % 12 : 12, 2, '0') + ";case"H":return"String.leftPad(this.getHours(), 2, '0') + ";case"i":return"String.leftPad(this.getMinutes(), 2, '0') + ";case"s":return"String.leftPad(this.getSeconds(), 2, '0') + ";case"O":return"this.getGMTOffset() + ";case"T":return"this.getTimezone() + ";case"Z":return"(this.getTimezoneOffset() * -60) + ";default:return"'"+String.escape(a)+"' + ";}};Date.parseDate=function(a,c){if(c=="unixtime"){return new Date(!isNaN(parseInt(a))?parseInt(a)*1000:0);}if(Date.parseFunctions[c]==null){Date.createParser(c);}var b=Date.parseFunctions[c];return Date[b](a);};Date.createParser=function(format){var funcName="parse"+Date.parseFunctions.count++;var regexNum=Date.parseRegexes.length;var currentGroup=1;Date.parseFunctions[format]=funcName;var code="Date."+funcName+" = function(input) {\nvar y = -1, m = -1, d = -1, h = -1, i = -1, s = -1, z = -1;\nvar d = new Date();\ny = d.getFullYear();\nm = d.getMonth();\nd = d.getDate();\nvar results = input.match(Date.parseRegexes["+regexNum+"]);\nif (results && results.length > 0) {";var regex="";var special=false;var ch="";for(var i=0;i<format.length;++i){ch=format.charAt(i);if(!special&&ch=="\\"){special=true;}else{if(special){special=false;regex+=String.escape(ch);}else{obj=Date.formatCodeToRegex(ch,currentGroup);currentGroup+=obj.g;regex+=obj.s;if(obj.g&&obj.c){code+=obj.c;}}}}code+="if (y > 0 && z > 0){\nvar doyDate = new Date(y,0);\ndoyDate.setDate(z);\nm = doyDate.getMonth();\nd = doyDate.getDate();\n}";code+="if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n{return new Date(y, m, d, h, i, s);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0)\n{return new Date(y, m, d, h, i);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0)\n{return new Date(y, m, d, h);}\nelse if (y > 0 && m >= 0 && d > 0)\n{return new Date(y, m, d);}\nelse if (y > 0 && m >= 0)\n{return new Date(y, m);}\nelse if (y > 0)\n{return new Date(y);}\n}return null;}";Date.parseRegexes[regexNum]=new RegExp("^"+regex+"$");eval(code);};Date.formatCodeToRegex=function(b,a){switch(b){case"D":return{g:0,c:null,s:"(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)"};case"j":case"d":return{g:1,c:"d = parseInt(results["+a+"], 10);\n",s:"(\\d{1,2})"};case"l":return{g:0,c:null,s:"(?:"+Date.dayNames.join("|")+")"};case"S":return{g:0,c:null,s:"(?:st|nd|rd|th)"};case"w":return{g:0,c:null,s:"\\d"};case"z":return{g:1,c:"z = parseInt(results["+a+"], 10);\n",s:"(\\d{1,3})"};case"W":return{g:0,c:null,s:"(?:\\d{2})"};case"F":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+a+"].substring(0, 3)], 10);\n",s:"("+Date.monthNames.join("|")+")"};case"M":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+a+"]], 10);\n",s:"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)"};case"n":case"m":return{g:1,c:"m = parseInt(results["+a+"], 10) - 1;\n",s:"(\\d{1,2})"};case"t":return{g:0,c:null,s:"\\d{1,2}"};case"L":return{g:0,c:null,s:"(?:1|0)"};case"Y":return{g:1,c:"y = parseInt(results["+a+"], 10);\n",s:"(\\d{4})"};case"y":return{g:1,c:"var ty = parseInt(results["+a+"], 10);\ny = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"};case"a":return{g:1,c:"if (results["+a+"] == 'am') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(am|pm)"};case"A":return{g:1,c:"if (results["+a+"] == 'AM') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(AM|PM)"};case"g":case"G":case"h":case"H":return{g:1,c:"h = parseInt(results["+a+"], 10);\n",s:"(\\d{1,2})"};case"i":return{g:1,c:"i = parseInt(results["+a+"], 10);\n",s:"(\\d{2})"};case"s":return{g:1,c:"s = parseInt(results["+a+"], 10);\n",s:"(\\d{2})"};case"O":return{g:0,c:null,s:"[+-]\\d{4}"};case"T":return{g:0,c:null,s:"[A-Z]{3}"};case"Z":return{g:0,c:null,s:"[+-]\\d{1,5}"};default:return{g:0,c:null,s:String.escape(b)};}};Date.prototype.getTimezone=function(){return this.toString().replace(/^.*? ([A-Z]{3}) [0-9]{4}.*$/,"$1").replace(/^.*?\(([A-Z])[a-z]+ ([A-Z])[a-z]+ ([A-Z])[a-z]+\)$/,"$1$2$3");};Date.prototype.getGMTOffset=function(){return(this.getTimezoneOffset()>0?"-":"+")+String.leftPad(Math.floor(Math.abs(this.getTimezoneOffset())/60),2,"0")+String.leftPad(Math.abs(this.getTimezoneOffset())%60,2,"0");};Date.prototype.getDayOfYear=function(){var a=0;Date.daysInMonth[1]=this.isLeapYear()?29:28;for(var b=0;b<this.getMonth();++b){a+=Date.daysInMonth[b];}return a+this.getDate();};Date.prototype.getWeekOfYear=function(){var b=this.getDayOfYear()+(4-this.getDay());var a=new Date(this.getFullYear(),0,1);var c=(7-a.getDay()+4);return String.leftPad(Math.ceil((b-c)/7)+1,2,"0");};Date.prototype.isLeapYear=function(){var a=this.getFullYear();return((a&3)==0&&(a%100||(a%400==0&&a)));};Date.prototype.getFirstDayOfMonth=function(){var a=(this.getDay()-(this.getDate()-1))%7;return(a<0)?(a+7):a;};Date.prototype.getLastDayOfMonth=function(){var a=(this.getDay()+(Date.daysInMonth[this.getMonth()]-this.getDate()))%7;return(a<0)?(a+7):a;};Date.prototype.getDaysInMonth=function(){Date.daysInMonth[1]=this.isLeapYear()?29:28;return Date.daysInMonth[this.getMonth()];};Date.prototype.getSuffix=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th";}};String.escape=function(a){return a.replace(/('|\\)/g,"\\$1");};String.leftPad=function(d,b,c){var a=new String(d);if(c==null){c=" ";}while(a.length<b){a=c+a;}return a;};Date.daysInMonth=[31,28,31,30,31,30,31,31,30,31,30,31];Date.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];Date.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];Date.y2kYear=50;Date.monthNumbers={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11};Date.patterns={ISO8601LongPattern:"Y-m-d H:i:s",ISO8601ShortPattern:"Y-m-d",ShortDatePattern:"n/j/Y",LongDatePattern:"l, F d, Y",FullDateTimePattern:"l, F d, Y g:i:s A",MonthDayPattern:"F d",ShortTimePattern:"g:i A",LongTimePattern:"g:i:s A",SortableDateTimePattern:"Y-m-d\\TH:i:s",UniversalSortableDateTimePattern:"Y-m-d H:i:sO",YearMonthPattern:"F, Y"};
1545
+ Date.parseFunctions={count:0};Date.parseRegexes=[];Date.formatFunctions={count:0};Date.prototype.dateFormat=function(b){if(b=="unixtime"){return parseInt(this.getTime()/1000);}if(Date.formatFunctions[b]==null){Date.createNewFormat(b);}var a=Date.formatFunctions[b];return this[a]();};Date.createNewFormat=function(format){var funcName="format"+Date.formatFunctions.count++;Date.formatFunctions[format]=funcName;var code="Date.prototype."+funcName+" = function() {return ";var special=false;var ch="";for(var i=0;i<format.length;++i){ch=format.charAt(i);if(!special&&ch=="\\"){special=true;}else{if(special){special=false;code+="'"+String.escape(ch)+"' + ";}else{code+=Date.getFormatCode(ch);}}}eval(code.substring(0,code.length-3)+";}");};Date.getFormatCode=function(a){switch(a){case"d":return"String.leftPad(this.getDate(), 2, '0') + ";case"D":return"Date.dayNames[this.getDay()].substring(0, 3) + ";case"j":return"this.getDate() + ";case"l":return"Date.dayNames[this.getDay()] + ";case"S":return"this.getSuffix() + ";case"w":return"this.getDay() + ";case"z":return"this.getDayOfYear() + ";case"W":return"this.getWeekOfYear() + ";case"F":return"Date.monthNames[this.getMonth()] + ";case"m":return"String.leftPad(this.getMonth() + 1, 2, '0') + ";case"M":return"Date.monthNames[this.getMonth()].substring(0, 3) + ";case"n":return"(this.getMonth() + 1) + ";case"t":return"this.getDaysInMonth() + ";case"L":return"(this.isLeapYear() ? 1 : 0) + ";case"Y":return"this.getFullYear() + ";case"y":return"('' + this.getFullYear()).substring(2, 4) + ";case"a":return"(this.getHours() < 12 ? 'am' : 'pm') + ";case"A":return"(this.getHours() < 12 ? 'AM' : 'PM') + ";case"g":return"((this.getHours() %12) ? this.getHours() % 12 : 12) + ";case"G":return"this.getHours() + ";case"h":return"String.leftPad((this.getHours() %12) ? this.getHours() % 12 : 12, 2, '0') + ";case"H":return"String.leftPad(this.getHours(), 2, '0') + ";case"i":return"String.leftPad(this.getMinutes(), 2, '0') + ";case"s":return"String.leftPad(this.getSeconds(), 2, '0') + ";case"O":return"this.getGMTOffset() + ";case"T":return"this.getTimezone() + ";case"Z":return"(this.getTimezoneOffset() * -60) + ";default:return"'"+String.escape(a)+"' + ";}};Date.parseDate=function(a,c){if(c=="unixtime"){return new Date(!isNaN(parseInt(a))?parseInt(a)*1000:0);}if(Date.parseFunctions[c]==null){Date.createParser(c);}var b=Date.parseFunctions[c];return Date[b](a);};Date.createParser=function(format){var funcName="parse"+Date.parseFunctions.count++;var regexNum=Date.parseRegexes.length;var currentGroup=1;Date.parseFunctions[format]=funcName;var code="Date."+funcName+" = function(input) {\nvar y = -1, m = -1, d = -1, h = -1, i = -1, s = -1, z = -1;\nvar d = new Date();\ny = d.getFullYear();\nm = d.getMonth();\nd = d.getDate();\nvar results = input.match(Date.parseRegexes["+regexNum+"]);\nif (results && results.length > 0) {";var regex="";var special=false;var ch="";for(var i=0;i<format.length;++i){ch=format.charAt(i);if(!special&&ch=="\\"){special=true;}else{if(special){special=false;regex+=String.escape(ch);}else{obj=Date.formatCodeToRegex(ch,currentGroup);currentGroup+=obj.g;regex+=obj.s;if(obj.g&&obj.c){code+=obj.c;}}}}code+="if (y > 0 && z > 0){\nvar doyDate = new Date(y,0);\ndoyDate.setDate(z);\nm = doyDate.getMonth();\nd = doyDate.getDate();\n}";code+="if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n{return new Date(y, m, d, h, i, s);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0)\n{return new Date(y, m, d, h, i);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0)\n{return new Date(y, m, d, h);}\nelse if (y > 0 && m >= 0 && d > 0)\n{return new Date(y, m, d);}\nelse if (y > 0 && m >= 0)\n{return new Date(y, m);}\nelse if (y > 0)\n{return new Date(y);}\n}return null;}";Date.parseRegexes[regexNum]=new RegExp("^"+regex+"$");eval(code);};Date.formatCodeToRegex=function(b,a){switch(b){case"D":return{g:0,c:null,s:"(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)"};case"j":case"d":return{g:1,c:"d = parseInt(results["+a+"], 10);\n",s:"(\\d{1,2})"};case"l":return{g:0,c:null,s:"(?:"+Date.dayNames.join("|")+")"};case"S":return{g:0,c:null,s:"(?:st|nd|rd|th)"};case"w":return{g:0,c:null,s:"\\d"};case"z":return{g:1,c:"z = parseInt(results["+a+"], 10);\n",s:"(\\d{1,3})"};case"W":return{g:0,c:null,s:"(?:\\d{2})"};case"F":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+a+"].substring(0, 3)], 10);\n",s:"("+Date.monthNames.join("|")+")"};case"M":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+a+"]], 10);\n",s:"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)"};case"n":case"m":return{g:1,c:"m = parseInt(results["+a+"], 10) - 1;\n",s:"(\\d{1,2})"};case"t":return{g:0,c:null,s:"\\d{1,2}"};case"L":return{g:0,c:null,s:"(?:1|0)"};case"Y":return{g:1,c:"y = parseInt(results["+a+"], 10);\n",s:"(\\d{4})"};case"y":return{g:1,c:"var ty = parseInt(results["+a+"], 10);\ny = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"};case"a":return{g:1,c:"if (results["+a+"] == 'am') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(am|pm)"};case"A":return{g:1,c:"if (results["+a+"] == 'AM') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(AM|PM)"};case"g":case"G":case"h":case"H":return{g:1,c:"h = parseInt(results["+a+"], 10);\n",s:"(\\d{1,2})"};case"i":return{g:1,c:"i = parseInt(results["+a+"], 10);\n",s:"(\\d{2})"};case"s":return{g:1,c:"s = parseInt(results["+a+"], 10);\n",s:"(\\d{2})"};case"O":return{g:0,c:null,s:"[+-]\\d{4}"};case"T":return{g:0,c:null,s:"[A-Z]{3}"};case"Z":return{g:0,c:null,s:"[+-]\\d{1,5}"};default:return{g:0,c:null,s:String.escape(b)};}};Date.prototype.getTimezone=function(){return this.toString().replace(/^.*? ([A-Z]{3}) [0-9]{4}.*$/,"$1").replace(/^.*?\(([A-Z])[a-z]+ ([A-Z])[a-z]+ ([A-Z])[a-z]+\)$/,"$1$2$3");};Date.prototype.getGMTOffset=function(){return(this.getTimezoneOffset()>0?"-":"+")+String.leftPad(Math.floor(Math.abs(this.getTimezoneOffset())/60),2,"0")+String.leftPad(Math.abs(this.getTimezoneOffset())%60,2,"0");};Date.prototype.getDayOfYear=function(){var a=0;Date.daysInMonth[1]=this.isLeapYear()?29:28;for(var b=0;b<this.getMonth();++b){a+=Date.daysInMonth[b];}return a+this.getDate();};Date.prototype.getWeekOfYear=function(){var b=this.getDayOfYear()+(4-this.getDay());var a=new Date(this.getFullYear(),0,1);var c=(7-a.getDay()+4);return String.leftPad(Math.ceil((b-c)/7)+1,2,"0");};Date.prototype.isLeapYear=function(){var a=this.getFullYear();return((a&3)==0&&(a%100||(a%400==0&&a)));};Date.prototype.getFirstDayOfMonth=function(){var a=(this.getDay()-(this.getDate()-1))%7;return(a<0)?(a+7):a;};Date.prototype.getLastDayOfMonth=function(){var a=(this.getDay()+(Date.daysInMonth[this.getMonth()]-this.getDate()))%7;return(a<0)?(a+7):a;};Date.prototype.getDaysInMonth=function(){Date.daysInMonth[1]=this.isLeapYear()?29:28;return Date.daysInMonth[this.getMonth()];};Date.prototype.getSuffix=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th";}};String.escape=function(a){return a.replace(/('|\\)/g,"\\$1");};String.leftPad=function(d,b,c){var a=new String(d);if(c==null){c=" ";}while(a.length<b){a=c+a;}return a;};Date.daysInMonth=[31,28,31,30,31,30,31,31,30,31,30,31];Date.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];Date.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];Date.y2kYear=50;Date.monthNumbers={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11};Date.patterns={ISO8601LongPattern:"Y-m-d H:i:s",ISO8601ShortPattern:"Y-m-d",ShortDatePattern:"n/j/Y",LongDatePattern:"l, F d, Y",FullDateTimePattern:"l, F d, Y g:i:s A",MonthDayPattern:"F d",ShortTimePattern:"g:i A",LongTimePattern:"g:i:s A",SortableDateTimePattern:"Y-m-d\\TH:i:s",UniversalSortableDateTimePattern:"Y-m-d H:i:sO",YearMonthPattern:"F, Y"};
@@ -83,9 +83,22 @@
83
83
  text-align: center;
84
84
  }
85
85
 
86
- .xdsoft_datetimepic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YzMkVCRDNCMTBFQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDQ0FGMjU2MjQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoNEP54AAAIOSURBVHja7Jq9TsMwEMcxrZD4WpBYeKUCe+kTMCACHZh4BFfHO/AAIHZGFhYkBBsSEqxsLCAgXKhbXYOTxh9pfJVP+qutnZ5s/5Lz2Y5I03QhWji2GIcgAokWgfCxNvcOCCGKqiSqhUp0laHOne05vdEyGMfkdxJDVjgwDlEQgYQBgx+ULJaWSXXS6r/ER5FBVR8VfGftTKcITNs+a1XpcFoExREIDF14AVIFxgQUS+h520cdud6wNkC0UBw6BCO/HoCYwBhD8QCkQ/x1mwDyD4plh4D6DDV0TAGyo4HcawLIBBSLDkHeH0Mg2yVP3l4TQMZQDDsEOl/MgHQqhMNuE0D+oBh0CIr8MAKyazBH9WyBuKxDWgbXfjNf32TZ1KWm/Ap1oSk/R53UtQ5xTh3LUlMmT8gt6g51Q9p+SobxgJQ/qmsfZhWywGFSl0yBjCLJCMgXail3b7+rumdVJ2YRss4cN+r6qAHDkPWjPjdJCF4n9RmAD/V9A/Wp4NQassDjwlB6XBiCxcJQWmZZb8THFilfy/lfrTvLghq2TqTHrRMTKNJ0sIhdo15RT+RpyWwFdY96UZ/LdQKBGjcXpcc1AlSFEfLmouD+1knuxBDUVrvOBmoOC/rEcN7OQxKVeJTCiAdUzUJhA2Oez9QTkp72OTVcxDcXY8iKNkxGAJXmJCOQwOa6dhyXsOa6XwEGAKdeb5ET3rQdAAAAAElFTkSuQmCC);
91
+ }
92
+
93
+ .xdsoft_datetimepicker .xdsoft_label i{
94
+ opacity:0.5;
95
+ background-position:-92px -19px;
96
+ display: inline-block;
97
+ width: 9px;
98
+ height: 20px;
99
+ vertical-align: middle;
88
100
  }
101
+
89
102
  .xdsoft_datetimepicker .xdsoft_prev{
90
103
  float: left;
91
104
  background-position:-20px 0px;
@@ -102,7 +115,9 @@
102
115
  }
103
116
  .xdsoft_datetimepicker .xdsoft_next:active,.xdsoft_datetimepicker .xdsoft_prev:active{
104
117
  }
105
- .xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_prev ,.xdsoft_datetimepicker .xdsoft_today_button{
118
+ .xdsoft_datetimepicker .xdsoft_next,
119
+ .xdsoft_datetimepicker .xdsoft_prev ,
120
+ .xdsoft_datetimepicker .xdsoft_today_button{
106
121
  background-color: transparent;
107
122
  background-repeat: no-repeat;
108
123
  border: 0px none currentColor;
@@ -110,6 +125,7 @@
110
125
  display: block;
111
126
  height: 30px;
112
127
  opacity: 0.5;
128
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
113
129
  outline: medium none currentColor;
114
130
  overflow: hidden;
115
131
  padding: 0px;
@@ -158,6 +174,7 @@
158
174
  .xdsoft_datetimepicker .xdsoft_next:hover,
159
175
  .xdsoft_datetimepicker .xdsoft_prev:hover {
160
176
  opacity: 1;
177
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
161
178
  }
162
179
  .xdsoft_datetimepicker .xdsoft_label{
163
180
  display: inline;
@@ -177,6 +194,9 @@
177
194
  .xdsoft_datetimepicker .xdsoft_label:hover{
178
195
  text-decoration:underline;
179
196
  }
197
+ .xdsoft_datetimepicker .xdsoft_label:hover i{
198
+ opacity:1.0;
199
+ }
180
200
  .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select{
181
201
  border:1px solid #ccc;
182
202
  position:absolute;
@@ -204,14 +224,15 @@
204
224
  font-weight: 700;
205
225
  }
206
226
  .xdsoft_datetimepicker .xdsoft_month{
207
- width:90px;
227
+ width:100px;
208
228
  text-align:right;
209
229
  }
210
230
  .xdsoft_datetimepicker .xdsoft_calendar{
211
231
  clear:both;
212
232
  }
213
233
  .xdsoft_datetimepicker .xdsoft_year{
214
- width:56px;
234
+ width: 48px;
235
+ margin-left: 5px;
215
236
  }
216
237
  .xdsoft_datetimepicker .xdsoft_calendar table{
217
238
  border-collapse:collapse;
@@ -231,6 +252,7 @@
231
252
  color: #666666;
232
253
  font-size: 12px;
233
254
  text-align: right;
255
+ vertical-align: middle;
234
256
  padding:0px;
235
257
  border-collapse:collapse;
236
258
  cursor:pointer;
@@ -257,9 +279,11 @@
257
279
  .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,
258
280
  .xdsoft_datetimepicker .xdsoft_time_box >div >div.xdsoft_disabled{
259
281
  opacity:0.5;
282
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
260
283
  }
261
284
  .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month.xdsoft_disabled{
262
285
  opacity:0.2;
286
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
263
287
  }
264
288
  .xdsoft_datetimepicker .xdsoft_calendar td:hover,
265
289
  .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div:hover{
@@ -304,3 +328,91 @@
304
328
  .xdsoft_scroller_box{
305
329
  position:relative;
306
330
  }
331
+
332
+
333
+ .xdsoft_datetimepicker.xdsoft_dark{
334
+ box-shadow: 0px 5px 15px -5px rgba(255, 255, 255, 0.506);
335
+ background: #000000;
336
+ border-bottom: 1px solid #444444;
337
+ border-left: 1px solid #333333;
338
+ border-right: 1px solid #333333;
339
+ border-top: 1px solid #333333;
340
+ color: #cccccc;
341
+ }
342
+
343
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box{
344
+ border-bottom:1px solid #222222;
345
+ }
346
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box >div >div{
347
+ background: #0a0a0a;
348
+ border-top:1px solid #222222;
349
+ color: #999999;
350
+ }
351
+
352
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_label{
353
+ background-color: #000;
354
+ }
355
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_label > .xdsoft_select{
356
+ border:1px solid #333;
357
+ background:#000;
358
+ }
359
+
360
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_label > .xdsoft_select > div > .xdsoft_option:hover{
361
+ color: #000;
362
+ background: #007fff;
363
+ }
364
+
365
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_label > .xdsoft_select > div > .xdsoft_option.xdsoft_current{
366
+ background: #cc5500;
367
+ box-shadow: #b03e00 0px 1px 3px 0px inset;
368
+ color:#000;
369
+ }
370
+
371
+
372
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_prev,
373
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_next,
374
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_today_button{
375
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAeCAYAAACsYQl4AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gkRDgsOD4dcsgAAAhBJREFUaN7tmrFOHDEQhmcAnRQCTSQaXilAD/cEVyBIUqTiEYzMO/AAIHrKNDRICDokJGjpaBKFfGkMMsvu7a7t5TDySNbdeb2j8bfe32P7FJBiw9tcQVBAF9DF+ttC7h1Q1dp6wIjIvKruNlwvoGPNQf7+BLQJdpGORJCd7QC2gB4W8vuBDbQVE3HvVC0EbFcfbb4BQ7vZvrGnKl0a0QQ7BrSDTArQHSG/gB3yMGv6MAG+dRmIXUHXwg4N1INMgtHSB/Iz7FjQwFfP32ZK0K9ghwRagcxbv8Ix8uT1Yb3m4Y1Tgn4BO0BHbY2/rEADa1PelK2UoJ9h99RR2+ArG9AVuWiyzZSgcdrYNVg7xU8WoIGNHnPAuAo6Jo+e79H2MfP8fCIixzWXTkTkqKb+EPjZN3OITpFaUjDJoJwB58AvL+49j+G2V3/l2l7GSoeNmAxNpqDnXPxPoP8Co8qAfXDXboARoDHScRCzQaOqP0RkP8Mdwn/u64onhcse5JGI/HY/v6jqH1UlVDpswgWLSTiibcCCxQRmHfeej1Wvfqni/3No1mEHWIKbhEvwPrBN6BIcOAXugGtgxatfBC6AW/f5KQS0HXBTySTMcW1XyLPYVNLcT8H9ExY3KHYamu67OWImJywfaj/aTdQHbZDLxv8wsGcO+cOeGarqrpOGx/cAWUTy1+hcrPyvo4AuoIsF2H8FLf0jpJIACgAAAABJRU5ErkJggg==');
376
+ }
377
+
378
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td,
379
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th{
380
+ background: #0a0a0a;
381
+ border:1px solid #222222;
382
+ color: #999999;
383
+ }
384
+
385
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th{
386
+ background: #0e0e0e;
387
+ }
388
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_today{
389
+ color:#cc5500;
390
+ }
391
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_default,
392
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_current,
393
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_current{
394
+ background: #cc5500;
395
+ box-shadow: #b03e00 0px 1px 3px 0px inset;
396
+ color:#000;
397
+ }
398
+
399
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td:hover,
400
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box >div >div:hover{
401
+ color: #000 !important;
402
+ background: #007fff !important;
403
+ }
404
+
405
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th{
406
+ color: #666;
407
+ }
408
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright{ color:#333 !important;}
409
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright a{ color:#111 !important;}
410
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright a:hover{ color:#555 !important;}
411
+
412
+
413
+ .xdsoft_dark .xdsoft_time_box{
414
+ border:1px solid #333;
415
+ }
416
+ .xdsoft_dark .xdsoft_scrollbar >.xdsoft_scroller{
417
+ background:#333 !important;
418
+ }
@@ -1,3 +1,3 @@
1
1
  module XdanDatetimepickerRails
2
- VERSION = '2.3.4'
2
+ VERSION = '2.3.5'
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.4
4
+ version: 2.3.5
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-08-06 00:00:00.000000000 Z
11
+ date: 2014-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 2.3.0
104
+ rubygems_version: 2.4.1
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: XDan's jQuery DateTimePicker packaged for the Rails Asset Pipeline