golden-datetimepicker 0.0.1 → 0.0.2

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: 554e3d1f853ea6ed6a53a3ee093b1e7086a08e1f
4
- data.tar.gz: d8becc34dcbd81649b53212ed7dfbd46f5d438b9
3
+ metadata.gz: 3c34b9c91593f3956882298a4e36551900fa515c
4
+ data.tar.gz: 261b12a094c322d79925bf8f96f190e5a65d3f63
5
5
  SHA512:
6
- metadata.gz: 2b16d64e767f0db6ff7bbc40cfd87f3aca51cc2282c624f5f43d2ece3b2c280f1d910b1cd460c837e0c77a73df82ce3bd185143cfd47a493d695d177b23291cd
7
- data.tar.gz: 1238d833295af299b5b922cedb8da557e04ba168ff9cee811c561f5aadbd97c90c0d8c9ba485aa50a807a2a22ae8873d8587d08e4d50474740786ec234b66d3f
6
+ metadata.gz: e02e6b8b18e76e66e1d7082c7b505d9a6032eca3628e34bd5916e1c0c6003c71573c8af0f97c46bf149bba330f4d2ea34db9c5dce6039ba1f2d7017b031af409
7
+ data.tar.gz: f7345194726f7326ed90b2dd7b6c88eafd5f1797aedbdf00a7022e692c253dbf59465497064c0d7af4a8853ee0263d7d0ba0103d8f76033d2720a5dc109d37f3
@@ -1,6 +1,6 @@
1
1
  module Golden
2
2
  module Datetimepicker
3
- VERSION = '0.0.1'
4
- JQUERY_TIMEPICKER_ADDON_VERSION = '1.4.5'
3
+ VERSION = '0.0.2'
4
+ JQUERY_TIMEPICKER_ADDON_VERSION = '1.5.0'
5
5
  end
6
6
  end
@@ -1,12 +1,13 @@
1
- /*! jQuery Timepicker Addon - v1.4.5 - 2014-05-26
1
+ /*! jQuery Timepicker Addon - v1.5.0 - 2014-09-01
2
2
  * http://trentrichardson.com/examples/timepicker
3
3
  * Copyright (c) 2014 Trent Richardson; Licensed MIT */
4
4
 
5
5
  (function($){
6
6
 
7
+ // source: src/i18n/jquery-ui-timepicker-af.js
7
8
  /* Afrikaans translation for the jQuery Timepicker Addon */
8
9
  /* Written by Deon Heyns */
9
- (function($) {
10
+
10
11
  $.timepicker.regional['af'] = {
11
12
  timeOnlyTitle: 'Kies Tyd',
12
13
  timeText: 'Tyd ',
@@ -23,12 +24,11 @@
23
24
  pmNames: ['PM', 'P'],
24
25
  isRTL: false
25
26
  };
26
- $.timepicker.setDefaults($.timepicker.regional['af']);
27
- })(jQuery);
28
27
 
28
+ // source: src/i18n/jquery-ui-timepicker-am.js
29
29
  /* Armenian translation for the jQuery Timepicker Addon */
30
30
  /* Written by Artavazd Avetisyan artavazda@hotmail.com */
31
- (function($) {
31
+
32
32
  $.timepicker.regional['am'] = {
33
33
  timeOnlyTitle: 'Ընտրեք ժամանակը',
34
34
  timeText: 'Ժամանակը',
@@ -45,12 +45,11 @@
45
45
  pmNames: ['PM', 'P'],
46
46
  isRTL: false
47
47
  };
48
- $.timepicker.setDefaults($.timepicker.regional['am']);
49
- })(jQuery);
50
48
 
49
+ // source: src/i18n/jquery-ui-timepicker-bg.js
51
50
  /* Bulgarian translation for the jQuery Timepicker Addon */
52
51
  /* Written by Plamen Kovandjiev */
53
- (function($) {
52
+
54
53
  $.timepicker.regional['bg'] = {
55
54
  timeOnlyTitle: 'Изберете време',
56
55
  timeText: 'Време',
@@ -67,11 +66,11 @@
67
66
  pmNames: ['PM', 'P'],
68
67
  isRTL: false
69
68
  };
70
- $.timepicker.setDefaults($.timepicker.regional['bg']);
71
- })(jQuery);
69
+
70
+ // source: src/i18n/jquery-ui-timepicker-ca.js
72
71
  /* Catalan translation for the jQuery Timepicker Addon */
73
72
  /* Written by Sergi Faber */
74
- (function($) {
73
+
75
74
  $.timepicker.regional['ca'] = {
76
75
  timeOnlyTitle: 'Escollir una hora',
77
76
  timeText: 'Hora',
@@ -88,12 +87,11 @@
88
87
  pmNames: ['PM', 'P'],
89
88
  isRTL: false
90
89
  };
91
- $.timepicker.setDefaults($.timepicker.regional['ca']);
92
- })(jQuery);
93
90
 
91
+ // source: src/i18n/jquery-ui-timepicker-cs.js
94
92
  /* Czech translation for the jQuery Timepicker Addon */
95
93
  /* Written by Ondřej Vodáček */
96
- (function($) {
94
+
97
95
  $.timepicker.regional['cs'] = {
98
96
  timeOnlyTitle: 'Vyberte čas',
99
97
  timeText: 'Čas',
@@ -110,12 +108,11 @@
110
108
  pmNames: ['odp.', 'PM', 'P'],
111
109
  isRTL: false
112
110
  };
113
- $.timepicker.setDefaults($.timepicker.regional['cs']);
114
- })(jQuery);
115
111
 
112
+ // source: src/i18n/jquery-ui-timepicker-da.js
116
113
  /* Danish translation for the jQuery Timepicker Addon */
117
114
  /* Written by Lars H. Jensen (http://www.larshj.dk) */
118
- (function ($) {
115
+
119
116
  $.timepicker.regional['da'] = {
120
117
  timeOnlyTitle: 'Vælg tid',
121
118
  timeText: 'Tid',
@@ -132,12 +129,11 @@
132
129
  pmNames: ['pm', 'PM', 'P'],
133
130
  isRTL: false
134
131
  };
135
- $.timepicker.setDefaults($.timepicker.regional['da']);
136
- })(jQuery);
137
132
 
133
+ // source: src/i18n/jquery-ui-timepicker-de.js
138
134
  /* German translation for the jQuery Timepicker Addon */
139
135
  /* Written by Marvin */
140
- (function($) {
136
+
141
137
  $.timepicker.regional['de'] = {
142
138
  timeOnlyTitle: 'Zeit wählen',
143
139
  timeText: 'Zeit',
@@ -154,12 +150,11 @@
154
150
  pmNames: ['nachm.', 'PM', 'P'],
155
151
  isRTL: false
156
152
  };
157
- $.timepicker.setDefaults($.timepicker.regional['de']);
158
- })(jQuery);
159
153
 
154
+ // source: src/i18n/jquery-ui-timepicker-el.js
160
155
  /* Hellenic translation for the jQuery Timepicker Addon */
161
156
  /* Written by Christos Pontikis */
162
- (function($) {
157
+
163
158
  $.timepicker.regional['el'] = {
164
159
  timeOnlyTitle: 'Επιλογή ώρας',
165
160
  timeText: 'Ώρα',
@@ -176,12 +171,12 @@
176
171
  pmNames: ['μ.μ.', 'PM', 'P'],
177
172
  isRTL: false
178
173
  };
179
- $.timepicker.setDefaults($.timepicker.regional['el']);
180
- })(jQuery);
181
174
 
175
+ // source: src/i18n/jquery-ui-timepicker-es.js
182
176
  /* Spanish translation for the jQuery Timepicker Addon */
183
177
  /* Written by Ianaré Sévi */
184
- (function($) {
178
+ /* Modified by Carlos Martínez */
179
+
185
180
  $.timepicker.regional['es'] = {
186
181
  timeOnlyTitle: 'Elegir una hora',
187
182
  timeText: 'Hora',
@@ -190,20 +185,19 @@
190
185
  secondText: 'Segundos',
191
186
  millisecText: 'Milisegundos',
192
187
  microsecText: 'Microsegundos',
193
- timezoneText: 'Huso horario',
194
- currentText: 'Ahora',
188
+ timezoneText: 'Uso horario',
189
+ currentText: 'Hoy',
195
190
  closeText: 'Cerrar',
196
191
  timeFormat: 'HH:mm',
197
192
  amNames: ['a.m.', 'AM', 'A'],
198
193
  pmNames: ['p.m.', 'PM', 'P'],
199
194
  isRTL: false
200
195
  };
201
- $.timepicker.setDefaults($.timepicker.regional['es']);
202
- })(jQuery);
203
196
 
197
+ // source: src/i18n/jquery-ui-timepicker-et.js
204
198
  /* Estonian translation for the jQuery Timepicker Addon */
205
199
  /* Written by Karl Sutt (karl@sutt.ee) */
206
- (function($) {
200
+
207
201
  $.timepicker.regional['et'] = {
208
202
  timeOnlyTitle: 'Vali aeg',
209
203
  timeText: 'Aeg',
@@ -220,13 +214,12 @@
220
214
  pmNames: ['PM', 'P'],
221
215
  isRTL: false
222
216
  };
223
- $.timepicker.setDefaults($.timepicker.regional['et']);
224
- })(jQuery);
225
217
 
218
+ // source: src/i18n/jquery-ui-timepicker-eu.js
226
219
  /* Basque trannslation for JQuery Timepicker Addon */
227
220
  /* Translated by Xabi Fer */
228
221
  /* Fixed by Asier Iturralde Sarasola - iametza interaktiboa */
229
- (function($) {
222
+
230
223
  $.timepicker.regional['eu'] = {
231
224
  timeOnlyTitle: 'Aukeratu ordua',
232
225
  timeText: 'Ordua',
@@ -243,11 +236,11 @@
243
236
  pmNames: ['p.m.', 'PM', 'P'],
244
237
  isRTL: false
245
238
  };
246
- $.timepicker.setDefaults($.timepicker.regional['eu']);
247
- })(jQuery);
239
+
240
+ // source: src/i18n/jquery-ui-timepicker-fi.js
248
241
  /* Finnish translation for the jQuery Timepicker Addon */
249
242
  /* Written by Juga Paazmaya (http://github.com/paazmaya) */
250
- (function($) {
243
+
251
244
  $.timepicker.regional['fi'] = {
252
245
  timeOnlyTitle: 'Valitse aika',
253
246
  timeText: 'Aika',
@@ -264,12 +257,11 @@
264
257
  pmNames: ['ip.', 'PM', 'P'],
265
258
  isRTL: false
266
259
  };
267
- $.timepicker.setDefaults($.timepicker.regional['fi']);
268
- })(jQuery);
269
260
 
261
+ // source: src/i18n/jquery-ui-timepicker-fr.js
270
262
  /* French translation for the jQuery Timepicker Addon */
271
263
  /* Written by Thomas Lété */
272
- (function($) {
264
+
273
265
  $.timepicker.regional['fr'] = {
274
266
  timeOnlyTitle: 'Choisir une heure',
275
267
  timeText: 'Heure',
@@ -286,12 +278,11 @@
286
278
  pmNames: ['PM', 'P'],
287
279
  isRTL: false
288
280
  };
289
- $.timepicker.setDefaults($.timepicker.regional['fr']);
290
- })(jQuery);
291
281
 
282
+ // source: src/i18n/jquery-ui-timepicker-gl.js
292
283
  /* Galician translation for the jQuery Timepicker Addon */
293
284
  /* Written by David Barral */
294
- (function($) {
285
+
295
286
  $.timepicker.regional['gl'] = {
296
287
  timeOnlyTitle: 'Elixir unha hora',
297
288
  timeText: 'Hora',
@@ -308,12 +299,11 @@
308
299
  pmNames: ['p.m.', 'PM', 'P'],
309
300
  isRTL: false
310
301
  };
311
- $.timepicker.setDefaults($.timepicker.regional['gl']);
312
- })(jQuery);
313
302
 
303
+ // source: src/i18n/jquery-ui-timepicker-he.js
314
304
  /* Hebrew translation for the jQuery Timepicker Addon */
315
305
  /* Written by Lior Lapid */
316
- (function($) {
306
+
317
307
  $.timepicker.regional["he"] = {
318
308
  timeOnlyTitle: "בחירת זמן",
319
309
  timeText: "שעה",
@@ -330,12 +320,11 @@
330
320
  pmNames: ['אחה"צ', 'PM', 'P'],
331
321
  isRTL: true
332
322
  };
333
- $.timepicker.setDefaults($.timepicker.regional["he"]);
334
- })(jQuery);
335
323
 
324
+ // source: src/i18n/jquery-ui-timepicker-hr.js
336
325
  /* Croatian translation for the jQuery Timepicker Addon */
337
326
  /* Written by Mladen */
338
- (function($) {
327
+
339
328
  $.timepicker.regional['hr'] = {
340
329
  timeOnlyTitle: 'Odaberi vrijeme',
341
330
  timeText: 'Vrijeme',
@@ -352,11 +341,11 @@
352
341
  pmNames: ['p.m.', 'PM', 'P'],
353
342
  isRTL: false
354
343
  };
355
- $.timepicker.setDefaults($.timepicker.regional['hr']);
356
- })(jQuery);
344
+
345
+ // source: src/i18n/jquery-ui-timepicker-hu.js
357
346
  /* Hungarian translation for the jQuery Timepicker Addon */
358
347
  /* Written by Vas Gábor */
359
- (function($) {
348
+
360
349
  $.timepicker.regional['hu'] = {
361
350
  timeOnlyTitle: 'Válasszon időpontot',
362
351
  timeText: 'Idő',
@@ -373,12 +362,11 @@
373
362
  pmNames: ['du.', 'PM', 'P'],
374
363
  isRTL: false
375
364
  };
376
- $.timepicker.setDefaults($.timepicker.regional['hu']);
377
- })(jQuery);
378
365
 
366
+ // source: src/i18n/jquery-ui-timepicker-id.js
379
367
  /* Indonesian translation for the jQuery Timepicker Addon */
380
368
  /* Written by Nia */
381
- (function($) {
369
+
382
370
  $.timepicker.regional['id'] = {
383
371
  timeOnlyTitle: 'Pilih Waktu',
384
372
  timeText: 'Waktu',
@@ -395,12 +383,11 @@
395
383
  pmNames: ['PM', 'P'],
396
384
  isRTL: false
397
385
  };
398
- $.timepicker.setDefaults($.timepicker.regional['id']);
399
- })(jQuery);
400
386
 
387
+ // source: src/i18n/jquery-ui-timepicker-it.js
401
388
  /* Italian translation for the jQuery Timepicker Addon */
402
389
  /* Written by Marco "logicoder" Del Tongo */
403
- (function($) {
390
+
404
391
  $.timepicker.regional['it'] = {
405
392
  timeOnlyTitle: 'Scegli orario',
406
393
  timeText: 'Orario',
@@ -417,12 +404,11 @@
417
404
  pmNames: ['p.', 'PM', 'P'],
418
405
  isRTL: false
419
406
  };
420
- $.timepicker.setDefaults($.timepicker.regional['it']);
421
- })(jQuery);
422
407
 
408
+ // source: src/i18n/jquery-ui-timepicker-ja.js
423
409
  /* Japanese translation for the jQuery Timepicker Addon */
424
410
  /* Written by Jun Omae */
425
- (function($) {
411
+
426
412
  $.timepicker.regional['ja'] = {
427
413
  timeOnlyTitle: '時間を選択',
428
414
  timeText: '時間',
@@ -439,12 +425,11 @@
439
425
  pmNames: ['午後', 'PM', 'P'],
440
426
  isRTL: false
441
427
  };
442
- $.timepicker.setDefaults($.timepicker.regional['ja']);
443
- })(jQuery);
444
428
 
429
+ // source: src/i18n/jquery-ui-timepicker-ko.js
445
430
  /* Korean translation for the jQuery Timepicker Addon */
446
431
  /* Written by Genie */
447
- (function($) {
432
+
448
433
  $.timepicker.regional['ko'] = {
449
434
  timeOnlyTitle: '시간 선택',
450
435
  timeText: '시간',
@@ -461,12 +446,11 @@
461
446
  pmNames: ['오후', 'PM', 'P'],
462
447
  isRTL: false
463
448
  };
464
- $.timepicker.setDefaults($.timepicker.regional['ko']);
465
- })(jQuery);
466
449
 
450
+ // source: src/i18n/jquery-ui-timepicker-lt.js
467
451
  /* Lithuanian translation for the jQuery Timepicker Addon */
468
452
  /* Written by Irmantas Šiupšinskas */
469
- (function($) {
453
+
470
454
  $.timepicker.regional['lt'] = {
471
455
  timeOnlyTitle: 'Pasirinkite laiką',
472
456
  timeText: 'Laikas',
@@ -483,12 +467,11 @@
483
467
  pmNames: ['popiet', 'PM', 'P'],
484
468
  isRTL: false
485
469
  };
486
- $.timepicker.setDefaults($.timepicker.regional['lt']);
487
- })(jQuery);
488
470
 
471
+ // source: src/i18n/jquery-ui-timepicker-nl.js
489
472
  /* Dutch translation for the jQuery Timepicker Addon */
490
473
  /* Written by Martijn van der Lee */
491
- (function($) {
474
+
492
475
  $.timepicker.regional['nl'] = {
493
476
  timeOnlyTitle: 'Tijdstip',
494
477
  timeText: 'Tijd',
@@ -505,12 +488,11 @@
505
488
  pmNames: ['PM', 'P'],
506
489
  isRTL: false
507
490
  };
508
- $.timepicker.setDefaults($.timepicker.regional['nl']);
509
- })(jQuery);
510
491
 
492
+ // source: src/i18n/jquery-ui-timepicker-no.js
511
493
  /* Norwegian translation for the jQuery Timepicker Addon */
512
494
  /* Written by Morten Hauan (http://hauan.me) */
513
- (function($) {
495
+
514
496
  $.timepicker.regional['no'] = {
515
497
  timeOnlyTitle: 'Velg tid',
516
498
  timeText: 'Tid',
@@ -527,12 +509,11 @@
527
509
  pmNames: ['pm', 'PM', 'P'],
528
510
  isRTL: false
529
511
  };
530
- $.timepicker.setDefaults($.timepicker.regional['no']);
531
- })(jQuery);
532
512
 
513
+ // source: src/i18n/jquery-ui-timepicker-pl.js
533
514
  /* Polish translation for the jQuery Timepicker Addon */
534
515
  /* Written by Michał Pena */
535
- (function($) {
516
+
536
517
  $.timepicker.regional['pl'] = {
537
518
  timeOnlyTitle: 'Wybierz godzinę',
538
519
  timeText: 'Czas',
@@ -549,12 +530,11 @@
549
530
  pmNames: ['PM', 'P'],
550
531
  isRTL: false
551
532
  };
552
- $.timepicker.setDefaults($.timepicker.regional['pl']);
553
- })(jQuery);
554
533
 
534
+ // source: src/i18n/jquery-ui-timepicker-pt-BR.js
555
535
  /* Brazilian Portuguese translation for the jQuery Timepicker Addon */
556
536
  /* Written by Diogo Damiani (diogodamiani@gmail.com) */
557
- (function ($) {
537
+
558
538
  $.timepicker.regional['pt-BR'] = {
559
539
  timeOnlyTitle: 'Escolha o horário',
560
540
  timeText: 'Horário',
@@ -571,12 +551,11 @@
571
551
  pmNames: ['p.m.', 'PM', 'P'],
572
552
  isRTL: false
573
553
  };
574
- $.timepicker.setDefaults($.timepicker.regional['pt-BR']);
575
- })(jQuery);
576
554
 
555
+ // source: src/i18n/jquery-ui-timepicker-pt.js
577
556
  /* Portuguese translation for the jQuery Timepicker Addon */
578
557
  /* Written by Luan Almeida */
579
- (function($) {
558
+
580
559
  $.timepicker.regional['pt'] = {
581
560
  timeOnlyTitle: 'Escolha uma hora',
582
561
  timeText: 'Hora',
@@ -593,12 +572,11 @@
593
572
  pmNames: ['p.m.', 'PM', 'P'],
594
573
  isRTL: false
595
574
  };
596
- $.timepicker.setDefaults($.timepicker.regional['pt']);
597
- })(jQuery);
598
575
 
576
+ // source: src/i18n/jquery-ui-timepicker-ro.js
599
577
  /* Romanian translation for the jQuery Timepicker Addon */
600
578
  /* Written by Romeo Adrian Cioaba */
601
- (function($) {
579
+
602
580
  $.timepicker.regional['ro'] = {
603
581
  timeOnlyTitle: 'Alegeţi o oră',
604
582
  timeText: 'Timp',
@@ -615,12 +593,11 @@
615
593
  pmNames: ['PM', 'P'],
616
594
  isRTL: false
617
595
  };
618
- $.timepicker.setDefaults($.timepicker.regional['ro']);
619
- })(jQuery);
620
596
 
597
+ // source: src/i18n/jquery-ui-timepicker-ru.js
621
598
  /* Russian translation for the jQuery Timepicker Addon */
622
599
  /* Written by Trent Richardson */
623
- (function($) {
600
+
624
601
  $.timepicker.regional['ru'] = {
625
602
  timeOnlyTitle: 'Выберите время',
626
603
  timeText: 'Время',
@@ -637,12 +614,11 @@
637
614
  pmNames: ['PM', 'P'],
638
615
  isRTL: false
639
616
  };
640
- $.timepicker.setDefaults($.timepicker.regional['ru']);
641
- })(jQuery);
642
617
 
618
+ // source: src/i18n/jquery-ui-timepicker-sk.js
643
619
  /* Slovak translation for the jQuery Timepicker Addon */
644
620
  /* Written by David Vallner */
645
- (function($) {
621
+
646
622
  $.timepicker.regional['sk'] = {
647
623
  timeOnlyTitle: 'Zvoľte čas',
648
624
  timeText: 'Čas',
@@ -659,12 +635,32 @@
659
635
  pmNames: ['pop.', 'PM', 'P'],
660
636
  isRTL: false
661
637
  };
662
- $.timepicker.setDefaults($.timepicker.regional['sk']);
663
- })(jQuery);
664
638
 
639
+ // source: src/i18n/jquery-ui-timepicker-sl.js
640
+ /* Slovenian translation for the jQuery Timepicker Addon */
641
+ /* Written by Hadalin (https://github.com/hadalin) */
642
+
643
+ $.timepicker.regional['sl'] = {
644
+ timeOnlyTitle: 'Izberite čas',
645
+ timeText: 'Čas',
646
+ hourText: 'Ura',
647
+ minuteText: 'Minute',
648
+ secondText: 'Sekunde',
649
+ millisecText: 'Milisekunde',
650
+ microsecText: 'Mikrosekunde',
651
+ timezoneText: 'Časovni pas',
652
+ currentText: 'Sedaj',
653
+ closeText: 'Zapri',
654
+ timeFormat: 'HH:mm',
655
+ amNames: ['dop.', 'AM', 'A'],
656
+ pmNames: ['pop.', 'PM', 'P'],
657
+ isRTL: false
658
+ };
659
+
660
+ // source: src/i18n/jquery-ui-timepicker-sr-RS.js
665
661
  /* Serbian cyrilic translation for the jQuery Timepicker Addon */
666
662
  /* Written by Vladimir Jelovac */
667
- (function($) {
663
+
668
664
  $.timepicker.regional['sr-RS'] = {
669
665
  timeOnlyTitle: 'Одаберите време',
670
666
  timeText: 'Време',
@@ -681,12 +677,11 @@
681
677
  pmNames: ['PM', 'P'],
682
678
  isRTL: false
683
679
  };
684
- $.timepicker.setDefaults($.timepicker.regional['sr-RS']);
685
- })(jQuery);
686
680
 
681
+ // source: src/i18n/jquery-ui-timepicker-sr-YU.js
687
682
  /* Serbian latin translation for the jQuery Timepicker Addon */
688
683
  /* Written by Vladimir Jelovac */
689
- (function($) {
684
+
690
685
  $.timepicker.regional['sr-YU'] = {
691
686
  timeOnlyTitle: 'Odaberite vreme',
692
687
  timeText: 'Vreme',
@@ -703,12 +698,11 @@
703
698
  pmNames: ['PM', 'P'],
704
699
  isRTL: false
705
700
  };
706
- $.timepicker.setDefaults($.timepicker.regional['sr-YU']);
707
- })(jQuery);
708
701
 
702
+ // source: src/i18n/jquery-ui-timepicker-sv.js
709
703
  /* Swedish translation for the jQuery Timepicker Addon */
710
704
  /* Written by Nevon */
711
- (function($) {
705
+
712
706
  $.timepicker.regional['sv'] = {
713
707
  timeOnlyTitle: 'Välj en tid',
714
708
  timeText: 'Tid',
@@ -725,12 +719,11 @@
725
719
  pmNames: ['PM', 'P'],
726
720
  isRTL: false
727
721
  };
728
- $.timepicker.setDefaults($.timepicker.regional['sv']);
729
- })(jQuery);
730
722
 
723
+ // source: src/i18n/jquery-ui-timepicker-th.js
731
724
  /* Thai translation for the jQuery Timepicker Addon */
732
725
  /* Written by Yote Wachirapornpongsa */
733
- (function($) {
726
+
734
727
  $.timepicker.regional['th'] = {
735
728
  timeOnlyTitle: 'เลือกเวลา',
736
729
  timeText: 'เวลา ',
@@ -744,11 +737,11 @@
744
737
  closeText: 'ปิด',
745
738
  timeFormat: 'hh:mm tt'
746
739
  };
747
- $.timepicker.setDefaults($.timepicker.regional['th']);
748
- })(jQuery);
740
+
741
+ // source: src/i18n/jquery-ui-timepicker-tr.js
749
742
  /* Turkish translation for the jQuery Timepicker Addon */
750
743
  /* Written by Fehmi Can Saglam, Edited by Goktug Ozturk */
751
- (function($) {
744
+
752
745
  $.timepicker.regional['tr'] = {
753
746
  timeOnlyTitle: 'Zaman Seçiniz',
754
747
  timeText: 'Zaman',
@@ -765,12 +758,11 @@
765
758
  pmNames: ['ÖS', 'S'],
766
759
  isRTL: false
767
760
  };
768
- $.timepicker.setDefaults($.timepicker.regional['tr']);
769
- })(jQuery);
770
761
 
762
+ // source: src/i18n/jquery-ui-timepicker-uk.js
771
763
  /* Ukrainian translation for the jQuery Timepicker Addon */
772
764
  /* Written by Sergey Noskov */
773
- (function($) {
765
+
774
766
  $.timepicker.regional['uk'] = {
775
767
  timeOnlyTitle: 'Виберіть час',
776
768
  timeText: 'Час',
@@ -787,12 +779,11 @@
787
779
  pmNames: ['PM', 'P'],
788
780
  isRTL: false
789
781
  };
790
- $.timepicker.setDefaults($.timepicker.regional['uk']);
791
- })(jQuery);
792
782
 
783
+ // source: src/i18n/jquery-ui-timepicker-vi.js
793
784
  /* Vietnamese translation for the jQuery Timepicker Addon */
794
785
  /* Written by Nguyen Dinh Trung */
795
- (function($) {
786
+
796
787
  $.timepicker.regional['vi'] = {
797
788
  timeOnlyTitle: 'Chọn giờ',
798
789
  timeText: 'Thời gian',
@@ -809,12 +800,11 @@
809
800
  pmNames: ['CH', 'C'],
810
801
  isRTL: false
811
802
  };
812
- $.timepicker.setDefaults($.timepicker.regional['vi']);
813
- })(jQuery);
814
803
 
804
+ // source: src/i18n/jquery-ui-timepicker-zh-CN.js
815
805
  /* Simplified Chinese translation for the jQuery Timepicker Addon /
816
806
  / Written by Will Lu */
817
- (function($) {
807
+
818
808
  $.timepicker.regional['zh-CN'] = {
819
809
  timeOnlyTitle: '选择时间',
820
810
  timeText: '时间',
@@ -831,12 +821,11 @@
831
821
  pmNames: ['PM', 'P'],
832
822
  isRTL: false
833
823
  };
834
- $.timepicker.setDefaults($.timepicker.regional['zh-CN']);
835
- })(jQuery);
836
824
 
825
+ // source: src/i18n/jquery-ui-timepicker-zh-TW.js
837
826
  /* Chinese translation for the jQuery Timepicker Addon */
838
827
  /* Written by Alang.lin */
839
- (function($) {
828
+
840
829
  $.timepicker.regional['zh-TW'] = {
841
830
  timeOnlyTitle: '選擇時分秒',
842
831
  timeText: '時間',
@@ -853,7 +842,5 @@
853
842
  pmNames: ['下午', 'PM', 'P'],
854
843
  isRTL: false
855
844
  };
856
- $.timepicker.setDefaults($.timepicker.regional['zh-TW']);
857
- })(jQuery);
858
845
 
859
846
  })(jQuery);
@@ -1,5 +1,6 @@
1
1
  /* Spanish translation for the jQuery Timepicker Addon */
2
2
  /* Written by Ianaré Sévi */
3
+ /* Modified by Carlos Martínez */
3
4
  (function($) {
4
5
  $.timepicker.regional['es'] = {
5
6
  timeOnlyTitle: 'Elegir una hora',
@@ -9,8 +10,8 @@
9
10
  secondText: 'Segundos',
10
11
  millisecText: 'Milisegundos',
11
12
  microsecText: 'Microsegundos',
12
- timezoneText: 'Huso horario',
13
- currentText: 'Ahora',
13
+ timezoneText: 'Uso horario',
14
+ currentText: 'Hoy',
14
15
  closeText: 'Cerrar',
15
16
  timeFormat: 'HH:mm',
16
17
  amNames: ['a.m.', 'AM', 'A'],
@@ -0,0 +1,21 @@
1
+ /* Slovenian translation for the jQuery Timepicker Addon */
2
+ /* Written by Hadalin (https://github.com/hadalin) */
3
+ (function($) {
4
+ $.timepicker.regional['sl'] = {
5
+ timeOnlyTitle: 'Izberite čas',
6
+ timeText: 'Čas',
7
+ hourText: 'Ura',
8
+ minuteText: 'Minute',
9
+ secondText: 'Sekunde',
10
+ millisecText: 'Milisekunde',
11
+ microsecText: 'Mikrosekunde',
12
+ timezoneText: 'Časovni pas',
13
+ currentText: 'Sedaj',
14
+ closeText: 'Zapri',
15
+ timeFormat: 'HH:mm',
16
+ amNames: ['dop.', 'AM', 'A'],
17
+ pmNames: ['pop.', 'PM', 'P'],
18
+ isRTL: false
19
+ };
20
+ $.timepicker.setDefaults($.timepicker.regional['sl']);
21
+ })(jQuery);
@@ -1,4 +1,4 @@
1
- /*! jQuery Timepicker Addon - v1.4.5 - 2014-05-26
1
+ /*! jQuery Timepicker Addon - v1.5.0 - 2014-09-01
2
2
  * http://trentrichardson.com/examples/timepicker
3
3
  * Copyright (c) 2014 Trent Richardson; Licensed MIT */
4
4
  (function ($) {
@@ -16,11 +16,11 @@
16
16
  */
17
17
  $.extend($.ui, {
18
18
  timepicker: {
19
- version: "1.4.5"
19
+ version: "1.5.0"
20
20
  }
21
21
  });
22
22
 
23
- /*
23
+ /*
24
24
  * Timepicker manager.
25
25
  * Use the singleton instance of this class, $.timepicker, to interact with the time picker.
26
26
  * Settings for (groups of) time pickers are maintained in an instance object,
@@ -145,7 +145,7 @@
145
145
  support: {},
146
146
  control: null,
147
147
 
148
- /*
148
+ /*
149
149
  * Override the default settings for all instances of the time picker.
150
150
  * @param {Object} settings object - the new settings to use as defaults (anonymous object)
151
151
  * @return {Object} the manager object
@@ -218,7 +218,7 @@
218
218
 
219
219
  // detect which units are supported
220
220
  tp_inst.support = detectSupport(
221
- tp_inst._defaults.timeFormat +
221
+ tp_inst._defaults.timeFormat +
222
222
  (tp_inst._defaults.pickerTimeFormat ? tp_inst._defaults.pickerTimeFormat : '') +
223
223
  (tp_inst._defaults.altTimeFormat ? tp_inst._defaults.altTimeFormat : ''));
224
224
 
@@ -406,7 +406,7 @@
406
406
  }
407
407
  html += '</dd>';
408
408
  }
409
-
409
+
410
410
  // Timezone
411
411
  var showTz = o.showTimezone !== null ? o.showTimezone : this.support.timezone;
412
412
  html += '<dt class="ui_tpicker_timezone_label"' + (showTz ? '' : noDisplay) + '>' + o.timezoneText + '</dt>';
@@ -421,7 +421,7 @@
421
421
  $tp.prepend('<div class="ui-widget-header ui-helper-clearfix ui-corner-all">' + '<div class="ui-datepicker-title">' + o.timeOnlyTitle + '</div>' + '</div>');
422
422
  $dp.find('.ui-datepicker-header, .ui-datepicker-calendar').hide();
423
423
  }
424
-
424
+
425
425
  // add sliders, adjust grids, add events
426
426
  for (i = 0, l = tp_inst.units.length; i < l; i++) {
427
427
  litem = tp_inst.units[i];
@@ -456,7 +456,7 @@
456
456
  }
457
457
  }
458
458
  }
459
-
459
+
460
460
  tp_inst.control.value(tp_inst, tp_inst[f + '_slider'], litem, n);
461
461
 
462
462
  tp_inst._onTimeChange();
@@ -495,7 +495,7 @@
495
495
  tp_inst._onSelectHandler();
496
496
  });
497
497
  // End timezone options
498
-
498
+
499
499
  // inject timepicker into datepicker
500
500
  var $buttonPanel = $dp.find('.ui-datepicker-buttonpane');
501
501
  if ($buttonPanel.length) {
@@ -517,7 +517,7 @@
517
517
  var sliderAccessArgs = this._defaults.sliderAccessArgs,
518
518
  rtl = this._defaults.isRTL;
519
519
  sliderAccessArgs.isRTL = rtl;
520
-
520
+
521
521
  setTimeout(function () { // fix for inline mode
522
522
  if ($tp.find('.ui-slider-access').length === 0) {
523
523
  $tp.find('.ui-slider:visible').sliderAccess(sliderAccessArgs);
@@ -669,44 +669,44 @@
669
669
  }
670
670
  }
671
671
 
672
- if (dp_inst.settings.minTime!==null) {
673
- var tempMinTime=new Date("01/01/1970 " + dp_inst.settings.minTime);
672
+ if (dp_inst.settings.minTime!==null) {
673
+ var tempMinTime=new Date("01/01/1970 " + dp_inst.settings.minTime);
674
674
  if (this.hour<tempMinTime.getHours()) {
675
675
  this.hour=this._defaults.hourMin=tempMinTime.getHours();
676
- this.minute=this._defaults.minuteMin=tempMinTime.getMinutes();
676
+ this.minute=this._defaults.minuteMin=tempMinTime.getMinutes();
677
677
  } else if (this.hour===tempMinTime.getHours() && this.minute<tempMinTime.getMinutes()) {
678
678
  this.minute=this._defaults.minuteMin=tempMinTime.getMinutes();
679
- } else {
679
+ } else {
680
680
  if (this._defaults.hourMin<tempMinTime.getHours()) {
681
681
  this._defaults.hourMin=tempMinTime.getHours();
682
- this._defaults.minuteMin=tempMinTime.getMinutes();
682
+ this._defaults.minuteMin=tempMinTime.getMinutes();
683
683
  } else if (this._defaults.hourMin===tempMinTime.getHours()===this.hour && this._defaults.minuteMin<tempMinTime.getMinutes()) {
684
- this._defaults.minuteMin=tempMinTime.getMinutes();
684
+ this._defaults.minuteMin=tempMinTime.getMinutes();
685
685
  } else {
686
686
  this._defaults.minuteMin=0;
687
687
  }
688
- }
688
+ }
689
689
  }
690
-
691
- if (dp_inst.settings.maxTime!==null) {
690
+
691
+ if (dp_inst.settings.maxTime!==null) {
692
692
  var tempMaxTime=new Date("01/01/1970 " + dp_inst.settings.maxTime);
693
693
  if (this.hour>tempMaxTime.getHours()) {
694
- this.hour=this._defaults.hourMax=tempMaxTime.getHours();
694
+ this.hour=this._defaults.hourMax=tempMaxTime.getHours();
695
+ this.minute=this._defaults.minuteMax=tempMaxTime.getMinutes();
696
+ } else if (this.hour===tempMaxTime.getHours() && this.minute>tempMaxTime.getMinutes()) {
695
697
  this.minute=this._defaults.minuteMax=tempMaxTime.getMinutes();
696
- } else if (this.hour===tempMaxTime.getHours() && this.minute>tempMaxTime.getMinutes()) {
697
- this.minute=this._defaults.minuteMax=tempMaxTime.getMinutes();
698
698
  } else {
699
699
  if (this._defaults.hourMax>tempMaxTime.getHours()) {
700
700
  this._defaults.hourMax=tempMaxTime.getHours();
701
- this._defaults.minuteMax=tempMaxTime.getMinutes();
701
+ this._defaults.minuteMax=tempMaxTime.getMinutes();
702
702
  } else if (this._defaults.hourMax===tempMaxTime.getHours()===this.hour && this._defaults.minuteMax>tempMaxTime.getMinutes()) {
703
- this._defaults.minuteMax=tempMaxTime.getMinutes();
703
+ this._defaults.minuteMax=tempMaxTime.getMinutes();
704
704
  } else {
705
705
  this._defaults.minuteMax=59;
706
706
  }
707
- }
707
+ }
708
708
  }
709
-
709
+
710
710
  if (adjustSliders !== undefined && adjustSliders === true) {
711
711
  var hourMax = parseInt((this._defaults.hourMax - ((this._defaults.hourMax - this._defaults.hourMin) % this._defaults.stepHour)), 10),
712
712
  minMax = parseInt((this._defaults.minuteMax - ((this._defaults.minuteMax - this._defaults.minuteMin) % this._defaults.stepMinute)), 10),
@@ -800,11 +800,11 @@
800
800
  // If the update was done using the sliders, update the input field.
801
801
  var hasChanged = (
802
802
  hour !== parseInt(this.hour,10) || // sliders should all be numeric
803
- minute !== parseInt(this.minute,10) ||
804
- second !== parseInt(this.second,10) ||
805
- millisec !== parseInt(this.millisec,10) ||
806
- microsec !== parseInt(this.microsec,10) ||
807
- (this.ampm.length > 0 && (hour < 12) !== ($.inArray(this.ampm.toUpperCase(), this.amNames) !== -1)) ||
803
+ minute !== parseInt(this.minute,10) ||
804
+ second !== parseInt(this.second,10) ||
805
+ millisec !== parseInt(this.millisec,10) ||
806
+ microsec !== parseInt(this.microsec,10) ||
807
+ (this.ampm.length > 0 && (hour < 12) !== ($.inArray(this.ampm.toUpperCase(), this.amNames) !== -1)) ||
808
808
  (this.timezone !== null && timezone !== this.timezone.toString()) // could be numeric or "EST" format, so use toString()
809
809
  );
810
810
 
@@ -874,8 +874,8 @@
874
874
  */
875
875
  _updateDateTime: function (dp_inst) {
876
876
  dp_inst = this.inst || dp_inst;
877
- var dtTmp = (dp_inst.currentYear > 0?
878
- new Date(dp_inst.currentYear, dp_inst.currentMonth, dp_inst.currentDay) :
877
+ var dtTmp = (dp_inst.currentYear > 0?
878
+ new Date(dp_inst.currentYear, dp_inst.currentMonth, dp_inst.currentDay) :
879
879
  new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay)),
880
880
  dt = $.datepicker._daylightSavingAdjust(dtTmp),
881
881
  //dt = $.datepicker._daylightSavingAdjust(new Date(dp_inst.selectedYear, dp_inst.selectedMonth, dp_inst.selectedDay)),
@@ -885,7 +885,7 @@
885
885
  timeAvailable = dt !== null && this.timeDefined;
886
886
  this.formattedDate = $.datepicker.formatDate(dateFmt, (dt === null ? new Date() : dt), formatCfg);
887
887
  var formattedDateTime = this.formattedDate;
888
-
888
+
889
889
  // if a slider was changed but datepicker doesn't have a value yet, set it
890
890
  if (dp_inst.lastVal === "") {
891
891
  dp_inst.currentYear = dp_inst.selectedYear;
@@ -895,7 +895,7 @@
895
895
 
896
896
  /*
897
897
  * remove following lines to force every changes in date picker to change the input value
898
- * Bug descriptions: when an input field has a default value, and click on the field to pop up the date picker.
898
+ * Bug descriptions: when an input field has a default value, and click on the field to pop up the date picker.
899
899
  * If the user manually empty the value in the input field, the date picker will never change selected value.
900
900
  */
901
901
  //if (dp_inst.lastVal !== undefined && (dp_inst.lastVal.length > 0 && this.$input.val().length === 0)) {
@@ -920,7 +920,7 @@
920
920
  var altFormattedDateTime = '',
921
921
  altSeparator = this._defaults.altSeparator !== null ? this._defaults.altSeparator : this._defaults.separator,
922
922
  altTimeSuffix = this._defaults.altTimeSuffix !== null ? this._defaults.altTimeSuffix : this._defaults.timeSuffix;
923
-
923
+
924
924
  if (!this._defaults.timeOnly) {
925
925
  if (this._defaults.altFormat) {
926
926
  altFormattedDateTime = $.datepicker.formatDate(this._defaults.altFormat, (dt === null ? new Date() : dt), formatCfg);
@@ -987,7 +987,7 @@
987
987
  stop: function (event, ui) {
988
988
  tp_inst._onSelectHandler();
989
989
  }
990
- });
990
+ });
991
991
  },
992
992
  options: function (tp_inst, obj, unit, opts, val) {
993
993
  if (tp_inst._defaults.isRTL) {
@@ -1000,7 +1000,7 @@
1000
1000
  }
1001
1001
  return obj.slider(opts);
1002
1002
  }
1003
- var min = opts.min,
1003
+ var min = opts.min,
1004
1004
  max = opts.max;
1005
1005
  opts.min = opts.max = null;
1006
1006
  if (min !== undefined) {
@@ -1032,7 +1032,7 @@
1032
1032
  // select methods
1033
1033
  select: {
1034
1034
  create: function (tp_inst, obj, unit, val, min, max, step) {
1035
- var sel = '<select class="ui-timepicker-select" data-unit="' + unit + '" data-min="' + min + '" data-max="' + max + '" data-step="' + step + '">',
1035
+ var sel = '<select class="ui-timepicker-select ui-state-default ui-corner-all" data-unit="' + unit + '" data-min="' + min + '" data-max="' + max + '" data-step="' + step + '">',
1036
1036
  format = tp_inst._defaults.pickerTimeFormat || tp_inst._defaults.timeFormat;
1037
1037
 
1038
1038
  for (var i = min; i <= max; i += step) {
@@ -1062,7 +1062,7 @@
1062
1062
  if (val === undefined) {
1063
1063
  return $t.data(opts);
1064
1064
  }
1065
- o[opts] = val;
1065
+ o[opts] = val;
1066
1066
  }
1067
1067
  else { o = opts; }
1068
1068
  return tp_inst.control.create(tp_inst, obj, $t.data('unit'), $t.val(), o.min || $t.data('min'), o.max || $t.data('max'), o.step || $t.data('step'));
@@ -1297,11 +1297,11 @@
1297
1297
  }
1298
1298
  catch (err2) {
1299
1299
  $.timepicker.log("Unable to parse \ntimeString: " + s + "\ntimeFormat: " + f);
1300
- }
1300
+ }
1301
1301
  }
1302
1302
  return false;
1303
1303
  }; // end looseParse
1304
-
1304
+
1305
1305
  if (typeof o.parse === "function") {
1306
1306
  return o.parse(timeFormat, timeString, o);
1307
1307
  }
@@ -1387,14 +1387,17 @@
1387
1387
  $.datepicker._base_selectDate = $.datepicker._selectDate;
1388
1388
  $.datepicker._selectDate = function (id, dateStr) {
1389
1389
  var inst = this._getInst($(id)[0]),
1390
- tp_inst = this._get(inst, 'timepicker');
1390
+ tp_inst = this._get(inst, 'timepicker'),
1391
+ was_inline;
1391
1392
 
1392
1393
  if (tp_inst && inst.settings.showTimepicker) {
1393
1394
  tp_inst._limitMinMaxDateTime(inst, true);
1395
+ was_inline = inst.inline;
1394
1396
  inst.inline = inst.stay_open = true;
1395
1397
  //This way the onSelect handler called from calendarpicker get the full dateTime
1396
1398
  this._base_selectDate(id, dateStr);
1397
- inst.inline = inst.stay_open = false;
1399
+ inst.inline = was_inline;
1400
+ inst.stay_open = false;
1398
1401
  this._notifyChange(inst);
1399
1402
  this._updateDatepicker(inst);
1400
1403
  } else {
@@ -1447,11 +1450,11 @@
1447
1450
  .replace(/tT/g, ampm ? 'AaPpMm' : '')
1448
1451
  .replace(/T/g, ampm ? 'AP' : '')
1449
1452
  .replace(/tt/g, ampm ? 'apm' : '')
1450
- .replace(/t/g, ampm ? 'ap' : '') +
1451
- " " + tp_inst._defaults.separator +
1452
- tp_inst._defaults.timeSuffix +
1453
- (tz ? tp_inst._defaults.timezoneList.join('') : '') +
1454
- (tp_inst._defaults.amNames.join('')) + (tp_inst._defaults.pmNames.join('')) +
1453
+ .replace(/t/g, ampm ? 'ap' : '') +
1454
+ " " + tp_inst._defaults.separator +
1455
+ tp_inst._defaults.timeSuffix +
1456
+ (tz ? tp_inst._defaults.timezoneList.join('') : '') +
1457
+ (tp_inst._defaults.amNames.join('')) + (tp_inst._defaults.pmNames.join('')) +
1455
1458
  dateChars,
1456
1459
  chr = String.fromCharCode(event.charCode === undefined ? event.keyCode : event.charCode);
1457
1460
  return event.ctrlKey || (chr < ' ' || !dateChars || datetimeChars.indexOf(chr) > -1);
@@ -1474,11 +1477,11 @@
1474
1477
  var altFormat = tp_inst._defaults.altFormat || tp_inst._defaults.dateFormat,
1475
1478
  date = this._getDate(inst),
1476
1479
  formatCfg = $.datepicker._getFormatConfig(inst),
1477
- altFormattedDateTime = '',
1478
- altSeparator = tp_inst._defaults.altSeparator ? tp_inst._defaults.altSeparator : tp_inst._defaults.separator,
1480
+ altFormattedDateTime = '',
1481
+ altSeparator = tp_inst._defaults.altSeparator ? tp_inst._defaults.altSeparator : tp_inst._defaults.separator,
1479
1482
  altTimeSuffix = tp_inst._defaults.altTimeSuffix ? tp_inst._defaults.altTimeSuffix : tp_inst._defaults.timeSuffix,
1480
1483
  altTimeFormat = tp_inst._defaults.altTimeFormat !== null ? tp_inst._defaults.altTimeFormat : tp_inst._defaults.timeFormat;
1481
-
1484
+
1482
1485
  altFormattedDateTime += $.datepicker.formatTime(altTimeFormat, tp_inst, tp_inst._defaults) + altTimeSuffix;
1483
1486
  if (!tp_inst._defaults.timeOnly && !tp_inst._defaults.altFieldTimeOnly && date !== null) {
1484
1487
  if (tp_inst._defaults.altFormat) {
@@ -1492,7 +1495,7 @@
1492
1495
  }
1493
1496
  }
1494
1497
  else {
1495
- $.datepicker._base_updateAlternate(inst);
1498
+ $.datepicker._base_updateAlternate(inst);
1496
1499
  }
1497
1500
  };
1498
1501
 
@@ -1529,7 +1532,7 @@
1529
1532
  selectLocalTimezone(tp_inst);
1530
1533
  var now = new Date();
1531
1534
  this._setTime(inst, now);
1532
- $('.ui-datepicker-today', $dp).click();
1535
+ this._setDate(inst, now);
1533
1536
  };
1534
1537
 
1535
1538
  /*
@@ -1581,7 +1584,7 @@
1581
1584
  tp_inst.millisec = date ? date.getMilliseconds() : defaults.millisec;
1582
1585
  tp_inst.microsec = date ? date.getMicroseconds() : defaults.microsec;
1583
1586
 
1584
- //check if within min/max times..
1587
+ //check if within min/max times..
1585
1588
  tp_inst._limitMinMaxDateTime(inst, true);
1586
1589
 
1587
1590
  tp_inst._onTimeChange();
@@ -1649,9 +1652,9 @@
1649
1652
  } else {
1650
1653
  tp_date = date;
1651
1654
  }
1652
-
1653
- // This is important if you are using the timezone option, javascript's Date
1654
- // object will only return the timezone offset for the current locale, so we
1655
+
1656
+ // This is important if you are using the timezone option, javascript's Date
1657
+ // object will only return the timezone offset for the current locale, so we
1655
1658
  // adjust it accordingly. If not using timezone option this won't matter..
1656
1659
  // If a timezone is different in tp, keep the timezone as is
1657
1660
  if (tp_inst && tp_date) {
@@ -1691,8 +1694,8 @@
1691
1694
  date.setHours(tp_inst.hour, tp_inst.minute, tp_inst.second, tp_inst.millisec);
1692
1695
  date.setMicroseconds(tp_inst.microsec);
1693
1696
 
1694
- // This is important if you are using the timezone option, javascript's Date
1695
- // object will only return the timezone offset for the current locale, so we
1697
+ // This is important if you are using the timezone option, javascript's Date
1698
+ // object will only return the timezone offset for the current locale, so we
1696
1699
  // adjust it accordingly. If not using timezone option this won't matter..
1697
1700
  if (tp_inst.timezone != null) {
1698
1701
  // look out for DST if tz wasn't specified
@@ -1761,7 +1764,10 @@
1761
1764
  onselect = null,
1762
1765
  overrides = tp_inst._defaults.evnts,
1763
1766
  fns = {},
1764
- prop;
1767
+ prop,
1768
+ ret,
1769
+ oldVal,
1770
+ $target;
1765
1771
  if (typeof name === 'string') { // if min/max was set with the string
1766
1772
  if (name === 'minDate' || name === 'minDateTime') {
1767
1773
  min = value;
@@ -1819,13 +1825,24 @@
1819
1825
  } else if (onselect) {
1820
1826
  tp_inst._defaults.onSelect = onselect;
1821
1827
  }
1828
+
1829
+ // Datepicker will override our date when we call _base_optionDatepicker when
1830
+ // calling minDate/maxDate, so we will first grab the value, call
1831
+ // _base_optionDatepicker, then set our value back.
1832
+ if(min || max){
1833
+ $target = $(target);
1834
+ oldVal = $target.datetimepicker('getDate');
1835
+ ret = this._base_optionDatepicker.call($.datepicker, target, name_clone || name, value);
1836
+ $target.datetimepicker('setDate', oldVal);
1837
+ return ret;
1838
+ }
1822
1839
  }
1823
1840
  if (value === undefined) {
1824
1841
  return this._base_optionDatepicker.call($.datepicker, target, name);
1825
1842
  }
1826
1843
  return this._base_optionDatepicker.call($.datepicker, target, name_clone || name, value);
1827
1844
  };
1828
-
1845
+
1829
1846
  /*
1830
1847
  * jQuery isEmptyObject does not check hasOwnProperty - if someone has added to the object prototype,
1831
1848
  * it will return false for all objects
@@ -1983,7 +2000,7 @@
1983
2000
  hours = (off - minutes) / 60,
1984
2001
  iso = iso8601 ? ':' : '',
1985
2002
  tz = (off >= 0 ? '+' : '-') + ('0' + Math.abs(hours)).slice(-2) + iso + ('0' + Math.abs(minutes)).slice(-2);
1986
-
2003
+
1987
2004
  if (tz === '+00:00') {
1988
2005
  return 'Z';
1989
2006
  }
@@ -2127,6 +2144,7 @@
2127
2144
  date.setMilliseconds(date.getMilliseconds() - options.minInterval);
2128
2145
  }
2129
2146
  }
2147
+
2130
2148
  if (date.getTime) {
2131
2149
  other[method].call(other, 'option', option, date);
2132
2150
  }
@@ -2152,8 +2170,10 @@
2152
2170
  }, options, options.end));
2153
2171
 
2154
2172
  checkDates(startTime, endTime);
2173
+
2155
2174
  selected(startTime, endTime, 'minDate');
2156
2175
  selected(endTime, startTime, 'maxDate');
2176
+
2157
2177
  return $([startTime.get(0), endTime.get(0)]);
2158
2178
  };
2159
2179
 
@@ -2162,9 +2182,9 @@
2162
2182
  * @param {Object} err pass any type object to log to the console during error or debugging
2163
2183
  * @return {void}
2164
2184
  */
2165
- $.timepicker.log = function (err) {
2185
+ $.timepicker.log = function () {
2166
2186
  if (window.console) {
2167
- window.console.log(err);
2187
+ window.console.log.apply(window.console, Array.prototype.slice.call(arguments));
2168
2188
  }
2169
2189
  };
2170
2190
 
@@ -2198,6 +2218,6 @@
2198
2218
  /*
2199
2219
  * Keep up with the version
2200
2220
  */
2201
- $.timepicker.version = "1.4.5";
2221
+ $.timepicker.version = "1.5.0";
2202
2222
 
2203
2223
  })(jQuery);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: golden-datetimepicker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tse-Ching Ho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-19 00:00:00.000000000 Z
11
+ date: 2014-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,6 +86,7 @@ files:
86
86
  - vendor/assets/javascripts/jquery-timepicker-addon/i18n/jquery-ui-timepicker-ro.js
87
87
  - vendor/assets/javascripts/jquery-timepicker-addon/i18n/jquery-ui-timepicker-ru.js
88
88
  - vendor/assets/javascripts/jquery-timepicker-addon/i18n/jquery-ui-timepicker-sk.js
89
+ - vendor/assets/javascripts/jquery-timepicker-addon/i18n/jquery-ui-timepicker-sl.js
89
90
  - vendor/assets/javascripts/jquery-timepicker-addon/i18n/jquery-ui-timepicker-sr-RS.js
90
91
  - vendor/assets/javascripts/jquery-timepicker-addon/i18n/jquery-ui-timepicker-sr-YU.js
91
92
  - vendor/assets/javascripts/jquery-timepicker-addon/i18n/jquery-ui-timepicker-sv.js