date_time_picker 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/MIT-LICENSE +21 -21
  2. data/README.rdoc +72 -72
  3. data/lib/date_time_picker/date_time_picker_helpers.rb +78 -78
  4. data/lib/date_time_picker.rb +37 -37
  5. data/lib/generators/date_time_picker/USAGE +2 -2
  6. data/lib/generators/date_time_picker/date_time_picker_generator.rb +11 -11
  7. data/lib/generators/date_time_picker/templates/date_time_picker.rb +2 -2
  8. data/lib/simple_form/inputs/ui_date_input.rb +4 -4
  9. data/lib/simple_form/inputs/ui_date_time_input.rb +4 -4
  10. data/lib/simple_form/inputs/ui_time_input.rb +4 -4
  11. data/lib/simple_form/inputs_ext.rb +3 -3
  12. data/test/Rakefile +7 -7
  13. data/test/app/controllers/application_controller.rb +5 -5
  14. data/test/app/views/layouts/application.html.erb +12 -12
  15. data/test/config/application.rb +12 -12
  16. data/test/config/boot.rb +3 -3
  17. data/test/config/date_time_picker.yml +1 -1
  18. data/test/config/environment.rb +5 -5
  19. data/test/config/environments/test.rb +7 -7
  20. data/test/config/routes.rb +3 -3
  21. data/test/config.ru +4 -4
  22. data/test/script/rails +6 -6
  23. data/test/spec/application_spec.rb +13 -13
  24. data/test/spec/spec_helper.rb +4 -4
  25. data/vendor/assets/i18n/date_time_picker_ca.js +43 -0
  26. data/vendor/assets/i18n/date_time_picker_cs.js +43 -0
  27. data/vendor/assets/i18n/date_time_picker_de.js +43 -0
  28. data/vendor/assets/i18n/date_time_picker_el.js +42 -0
  29. data/vendor/assets/i18n/date_time_picker_es.js +42 -0
  30. data/vendor/assets/i18n/date_time_picker_et.js +42 -0
  31. data/vendor/assets/i18n/date_time_picker_fi.js +43 -0
  32. data/vendor/assets/i18n/date_time_picker_fr.js +45 -0
  33. data/vendor/assets/i18n/date_time_picker_gl.js +42 -0
  34. data/vendor/assets/i18n/date_time_picker_he.js +43 -0
  35. data/vendor/assets/i18n/date_time_picker_hu.js +43 -0
  36. data/vendor/assets/i18n/date_time_picker_id.js +42 -0
  37. data/vendor/assets/i18n/date_time_picker_it.js +43 -0
  38. data/vendor/assets/i18n/date_time_picker_ja.js +42 -0
  39. data/vendor/assets/i18n/date_time_picker_ko.js +42 -0
  40. data/vendor/assets/i18n/date_time_picker_lt.js +42 -0
  41. data/vendor/assets/i18n/date_time_picker_nl.js +42 -0
  42. data/vendor/assets/i18n/date_time_picker_no.js +43 -0
  43. data/vendor/assets/i18n/date_time_picker_pl.js +43 -0
  44. data/vendor/assets/i18n/date_time_picker_pt-BR.js +42 -0
  45. data/vendor/assets/i18n/date_time_picker_pt.js +41 -0
  46. data/vendor/assets/i18n/date_time_picker_ro.js +46 -0
  47. data/vendor/assets/i18n/date_time_picker_ru.js +42 -0
  48. data/vendor/assets/i18n/date_time_picker_sk.js +43 -0
  49. data/vendor/assets/i18n/date_time_picker_sv.js +43 -0
  50. data/vendor/assets/i18n/date_time_picker_tr.js +42 -0
  51. data/vendor/assets/i18n/date_time_picker_vi.js +43 -0
  52. data/vendor/assets/i18n/date_time_picker_zh-CN.js +43 -0
  53. data/vendor/assets/i18n/date_time_picker_zh-TW.js +43 -0
  54. data/vendor/assets/javascripts/date_time_picker.js +19 -19
  55. data/vendor/assets/javascripts/date_time_picker_all.js +1 -1
  56. data/vendor/assets/timepicker/jquery-ui-timepicker-addon.css +6 -0
  57. data/vendor/assets/timepicker/jquery-ui-timepicker-addon.js +1326 -0
  58. metadata +53 -22
@@ -1,19 +1,19 @@
1
- //= require jquery-ui-timepicker-addon
2
- //= require jquery-ui-sliderAccess
3
-
4
- $(function() {
5
- var fns = ["datetimepicker", "datepicker", "timepicker"];
6
- for (i=0; i<fns.length; i++) {
7
- var fn = fns[i];
8
- $("." + fn).each(function() {
9
- var picker = $(this);
10
- var options = $.parseJSON(picker.attr("data-options"));
11
- var locale = picker.attr("data-locale");
12
- if (locale != "en") {
13
- $.datepicker.setDefaults($.datepicker.regional[locale]);
14
- $.timepicker.setDefaults($.timepicker.regional[locale]);
15
- }
16
- picker[fn](options);
17
- });
18
- }
19
- });
1
+ //= require jquery-ui-timepicker-addon
2
+ //= require jquery-ui-sliderAccess
3
+
4
+ $(function() {
5
+ var fns = ["datetimepicker", "datepicker", "timepicker"];
6
+ for (i=0; i<fns.length; i++) {
7
+ var fn = fns[i];
8
+ $("." + fn).each(function() {
9
+ var picker = $(this);
10
+ var options = $.parseJSON(picker.attr("data-options"));
11
+ var locale = picker.attr("data-locale");
12
+ if (locale != "en") {
13
+ $.datepicker.setDefaults($.datepicker.regional[locale]);
14
+ $.timepicker.setDefaults($.timepicker.regional[locale]);
15
+ }
16
+ picker[fn](options);
17
+ });
18
+ }
19
+ });
@@ -1 +1 @@
1
- //= require_tree ../i18n
1
+ //= require_tree ../i18n
@@ -0,0 +1,6 @@
1
+ .ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
2
+ .ui-timepicker-div dl { text-align: left; }
3
+ .ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
4
+ .ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
5
+ .ui-timepicker-div td { font-size: 90%; }
6
+ .ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }