From 362c92cf9b1ce9e8fe42f38018a374966da69b89 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Fri, 12 Oct 2012 16:32:38 +0200 Subject: [PATCH] Update jQuery UI Time Picker to 0.3.1 --- 3rdparty/timepicker/GPL-LICENSE.txt | 0 3rdparty/timepicker/MIT-LICENSE.txt | 0 .../ui-bg_diagonals-thick_18_b81900_40x40.png | Bin .../ui-bg_diagonals-thick_20_666666_40x40.png | Bin .../images/ui-bg_flat_10_000000_40x100.png | Bin .../images/ui-bg_glass_100_f6f6f6_1x400.png | Bin .../images/ui-bg_glass_100_fdf5ce_1x400.png | Bin .../images/ui-bg_glass_65_ffffff_1x400.png | Bin .../ui-bg_gloss-wave_35_f6a828_500x100.png | Bin .../ui-bg_highlight-soft_100_eeeeee_1x100.png | Bin .../ui-bg_highlight-soft_75_ffe45c_1x100.png | Bin .../images/ui-icons_222222_256x240.png | Bin .../images/ui-icons_228ef1_256x240.png | Bin .../images/ui-icons_ef8c08_256x240.png | Bin .../images/ui-icons_ffd27a_256x240.png | Bin .../images/ui-icons_ffffff_256x240.png | Bin .../css/include/jquery-1.5.1.min.js | 0 .../css/include/jquery-ui-1.8.14.custom.css | 0 .../css/include/jquery.ui.core.min.js | 0 .../css/include/jquery.ui.position.min.js | 0 .../css/include/jquery.ui.tabs.min.js | 0 .../css/include/jquery.ui.widget.min.js | 0 .../ui-bg_diagonals-thick_18_b81900_40x40.png | Bin .../ui-bg_diagonals-thick_20_666666_40x40.png | Bin .../images/ui-bg_flat_10_000000_40x100.png | Bin .../images/ui-bg_glass_100_f6f6f6_1x400.png | Bin .../images/ui-bg_glass_100_fdf5ce_1x400.png | Bin .../images/ui-bg_glass_65_ffffff_1x400.png | Bin .../ui-bg_gloss-wave_35_f6a828_500x100.png | Bin .../ui-bg_highlight-soft_100_eeeeee_1x100.png | Bin .../ui-bg_highlight-soft_75_ffe45c_1x100.png | Bin .../images/ui-icons_222222_256x240.png | Bin .../images/ui-icons_228ef1_256x240.png | Bin .../images/ui-icons_ef8c08_256x240.png | Bin .../images/ui-icons_ffd27a_256x240.png | Bin .../images/ui-icons_ffffff_256x240.png | Bin .../timepicker/css/jquery.ui.timepicker.css | 2 +- 3rdparty/timepicker/js/i18n/i18n.html | 102 +++++++++++++--- .../js/i18n/jquery.ui.timepicker-cs.js | 12 ++ .../js/i18n/jquery.ui.timepicker-de.js | 11 +- .../js/i18n/jquery.ui.timepicker-es.js | 12 ++ .../js/i18n/jquery.ui.timepicker-fr.js | 0 .../js/i18n/jquery.ui.timepicker-hr.js | 13 ++ .../js/i18n/jquery.ui.timepicker-it.js | 12 ++ .../js/i18n/jquery.ui.timepicker-ja.js | 5 +- .../js/i18n/jquery.ui.timepicker-nl.js | 12 ++ .../js/i18n/jquery.ui.timepicker-pl.js | 12 ++ .../js/i18n/jquery.ui.timepicker-pt-BR.js | 12 ++ .../js/i18n/jquery.ui.timepicker-sl.js | 12 ++ .../js/i18n/jquery.ui.timepicker-sv.js | 12 ++ .../js/i18n/jquery.ui.timepicker-tr.js | 12 ++ .../timepicker/js/jquery.ui.timepicker.js | 115 ++++++++++++++---- 3rdparty/timepicker/releases.txt | 10 ++ 53 files changed, 319 insertions(+), 47 deletions(-) mode change 100644 => 100755 3rdparty/timepicker/GPL-LICENSE.txt mode change 100644 => 100755 3rdparty/timepicker/MIT-LICENSE.txt mode change 100644 => 100755 3rdparty/timepicker/css/include/images/ui-bg_diagonals-thick_18_b81900_40x40.png mode change 100644 => 100755 3rdparty/timepicker/css/include/images/ui-bg_diagonals-thick_20_666666_40x40.png mode change 100644 => 100755 3rdparty/timepicker/css/include/images/ui-bg_flat_10_000000_40x100.png mode change 100644 => 100755 3rdparty/timepicker/css/include/images/ui-bg_glass_100_f6f6f6_1x400.png mode change 100644 => 100755 3rdparty/timepicker/css/include/images/ui-bg_glass_100_fdf5ce_1x400.png mode change 100644 => 100755 3rdparty/timepicker/css/include/images/ui-bg_glass_65_ffffff_1x400.png mode change 100644 => 100755 3rdparty/timepicker/css/include/images/ui-bg_gloss-wave_35_f6a828_500x100.png mode change 100644 => 100755 3rdparty/timepicker/css/include/images/ui-bg_highlight-soft_100_eeeeee_1x100.png mode change 100644 => 100755 3rdparty/timepicker/css/include/images/ui-bg_highlight-soft_75_ffe45c_1x100.png mode change 100644 => 100755 3rdparty/timepicker/css/include/images/ui-icons_222222_256x240.png mode change 100644 => 100755 3rdparty/timepicker/css/include/images/ui-icons_228ef1_256x240.png mode change 100644 => 100755 3rdparty/timepicker/css/include/images/ui-icons_ef8c08_256x240.png mode change 100644 => 100755 3rdparty/timepicker/css/include/images/ui-icons_ffd27a_256x240.png mode change 100644 => 100755 3rdparty/timepicker/css/include/images/ui-icons_ffffff_256x240.png mode change 100644 => 100755 3rdparty/timepicker/css/include/jquery-1.5.1.min.js mode change 100644 => 100755 3rdparty/timepicker/css/include/jquery-ui-1.8.14.custom.css mode change 100644 => 100755 3rdparty/timepicker/css/include/jquery.ui.core.min.js mode change 100644 => 100755 3rdparty/timepicker/css/include/jquery.ui.position.min.js mode change 100644 => 100755 3rdparty/timepicker/css/include/jquery.ui.tabs.min.js mode change 100644 => 100755 3rdparty/timepicker/css/include/jquery.ui.widget.min.js mode change 100644 => 100755 3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png mode change 100644 => 100755 3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png mode change 100644 => 100755 3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_flat_10_000000_40x100.png mode change 100644 => 100755 3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png mode change 100644 => 100755 3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png mode change 100644 => 100755 3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png mode change 100644 => 100755 3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png mode change 100644 => 100755 3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png mode change 100644 => 100755 3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png mode change 100644 => 100755 3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_222222_256x240.png mode change 100644 => 100755 3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_228ef1_256x240.png mode change 100644 => 100755 3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_ef8c08_256x240.png mode change 100644 => 100755 3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_ffd27a_256x240.png mode change 100644 => 100755 3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_ffffff_256x240.png mode change 100644 => 100755 3rdparty/timepicker/css/jquery.ui.timepicker.css mode change 100644 => 100755 3rdparty/timepicker/js/i18n/i18n.html create mode 100755 3rdparty/timepicker/js/i18n/jquery.ui.timepicker-cs.js mode change 100644 => 100755 3rdparty/timepicker/js/i18n/jquery.ui.timepicker-de.js create mode 100755 3rdparty/timepicker/js/i18n/jquery.ui.timepicker-es.js mode change 100644 => 100755 3rdparty/timepicker/js/i18n/jquery.ui.timepicker-fr.js create mode 100755 3rdparty/timepicker/js/i18n/jquery.ui.timepicker-hr.js create mode 100755 3rdparty/timepicker/js/i18n/jquery.ui.timepicker-it.js mode change 100644 => 100755 3rdparty/timepicker/js/i18n/jquery.ui.timepicker-ja.js create mode 100755 3rdparty/timepicker/js/i18n/jquery.ui.timepicker-nl.js create mode 100755 3rdparty/timepicker/js/i18n/jquery.ui.timepicker-pl.js create mode 100755 3rdparty/timepicker/js/i18n/jquery.ui.timepicker-pt-BR.js create mode 100755 3rdparty/timepicker/js/i18n/jquery.ui.timepicker-sl.js create mode 100755 3rdparty/timepicker/js/i18n/jquery.ui.timepicker-sv.js create mode 100755 3rdparty/timepicker/js/i18n/jquery.ui.timepicker-tr.js mode change 100644 => 100755 3rdparty/timepicker/js/jquery.ui.timepicker.js mode change 100644 => 100755 3rdparty/timepicker/releases.txt diff --git a/3rdparty/timepicker/GPL-LICENSE.txt b/3rdparty/timepicker/GPL-LICENSE.txt old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/MIT-LICENSE.txt b/3rdparty/timepicker/MIT-LICENSE.txt old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/images/ui-bg_diagonals-thick_18_b81900_40x40.png b/3rdparty/timepicker/css/include/images/ui-bg_diagonals-thick_18_b81900_40x40.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/images/ui-bg_diagonals-thick_20_666666_40x40.png b/3rdparty/timepicker/css/include/images/ui-bg_diagonals-thick_20_666666_40x40.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/images/ui-bg_flat_10_000000_40x100.png b/3rdparty/timepicker/css/include/images/ui-bg_flat_10_000000_40x100.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/images/ui-bg_glass_100_f6f6f6_1x400.png b/3rdparty/timepicker/css/include/images/ui-bg_glass_100_f6f6f6_1x400.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/images/ui-bg_glass_100_fdf5ce_1x400.png b/3rdparty/timepicker/css/include/images/ui-bg_glass_100_fdf5ce_1x400.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/images/ui-bg_glass_65_ffffff_1x400.png b/3rdparty/timepicker/css/include/images/ui-bg_glass_65_ffffff_1x400.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/images/ui-bg_gloss-wave_35_f6a828_500x100.png b/3rdparty/timepicker/css/include/images/ui-bg_gloss-wave_35_f6a828_500x100.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/images/ui-bg_highlight-soft_100_eeeeee_1x100.png b/3rdparty/timepicker/css/include/images/ui-bg_highlight-soft_100_eeeeee_1x100.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/images/ui-bg_highlight-soft_75_ffe45c_1x100.png b/3rdparty/timepicker/css/include/images/ui-bg_highlight-soft_75_ffe45c_1x100.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/images/ui-icons_222222_256x240.png b/3rdparty/timepicker/css/include/images/ui-icons_222222_256x240.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/images/ui-icons_228ef1_256x240.png b/3rdparty/timepicker/css/include/images/ui-icons_228ef1_256x240.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/images/ui-icons_ef8c08_256x240.png b/3rdparty/timepicker/css/include/images/ui-icons_ef8c08_256x240.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/images/ui-icons_ffd27a_256x240.png b/3rdparty/timepicker/css/include/images/ui-icons_ffd27a_256x240.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/images/ui-icons_ffffff_256x240.png b/3rdparty/timepicker/css/include/images/ui-icons_ffffff_256x240.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/jquery-1.5.1.min.js b/3rdparty/timepicker/css/include/jquery-1.5.1.min.js old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/jquery-ui-1.8.14.custom.css b/3rdparty/timepicker/css/include/jquery-ui-1.8.14.custom.css old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/jquery.ui.core.min.js b/3rdparty/timepicker/css/include/jquery.ui.core.min.js old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/jquery.ui.position.min.js b/3rdparty/timepicker/css/include/jquery.ui.position.min.js old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/jquery.ui.tabs.min.js b/3rdparty/timepicker/css/include/jquery.ui.tabs.min.js old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/jquery.ui.widget.min.js b/3rdparty/timepicker/css/include/jquery.ui.widget.min.js old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png b/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png b/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_flat_10_000000_40x100.png b/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_flat_10_000000_40x100.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png b/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png b/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png b/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png b/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png b/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png b/3rdparty/timepicker/css/include/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_222222_256x240.png b/3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_222222_256x240.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_228ef1_256x240.png b/3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_228ef1_256x240.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_ef8c08_256x240.png b/3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_ef8c08_256x240.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_ffd27a_256x240.png b/3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_ffd27a_256x240.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_ffffff_256x240.png b/3rdparty/timepicker/css/include/ui-lightness/images/ui-icons_ffffff_256x240.png old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/css/jquery.ui.timepicker.css b/3rdparty/timepicker/css/jquery.ui.timepicker.css old mode 100644 new mode 100755 index 08b442a7e5..1efbacb7c3 --- a/3rdparty/timepicker/css/jquery.ui.timepicker.css +++ b/3rdparty/timepicker/css/jquery.ui.timepicker.css @@ -10,7 +10,7 @@ .ui-timepicker-inline { display: inline; } -#ui-timepicker-div { padding: 0.2em } +#ui-timepicker-div { padding: 0.2em; background-color: #fff; } .ui-timepicker-table { display: inline-table; width: 0; } .ui-timepicker-table table { margin:0.15em 0 0 0; border-collapse: collapse; } diff --git a/3rdparty/timepicker/js/i18n/i18n.html b/3rdparty/timepicker/js/i18n/i18n.html old mode 100644 new mode 100755 index 83cb5e3f30..4ba56cf8a9 --- a/3rdparty/timepicker/js/i18n/i18n.html +++ b/3rdparty/timepicker/js/i18n/i18n.html @@ -1,6 +1,11 @@ + + + + + Internationalisation page for the jquery ui timepicker @@ -14,10 +19,20 @@ - + + + + + + + + + + + @@ -32,18 +47,35 @@ showDeselectButton: true }); - $('#locale').change(function() { - $('#timepicker').timepicker( "option", - $.timepicker.regional[ $( this ).val() ] ); - }); + $('#locale').change(updateLocale).keyup(updateLocale); + }); + + function updateLocale() + { + $('#timepicker').timepicker( "option", + $.timepicker.regional[ $( '#locale' ).val() ] ); + } + Select a localisation :
@@ -56,18 +88,60 @@ List of localisations : - \ No newline at end of file + + \ No newline at end of file diff --git a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-cs.js b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-cs.js new file mode 100755 index 0000000000..23a43444cf --- /dev/null +++ b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-cs.js @@ -0,0 +1,12 @@ +/* Czech initialisation for the timepicker plugin */ +/* Written by David Spohr (spohr.david at gmail). */ +jQuery(function($){ + $.timepicker.regional['cs'] = { + hourText: 'Hodiny', + minuteText: 'Minuty', + amPmText: ['AM', 'PM'] , + closeButtonText: 'Zavřít', + nowButtonText: 'Nyní', + deselectButtonText: 'Odoznačit' } + $.timepicker.setDefaults($.timepicker.regional['cs']); +}); \ No newline at end of file diff --git a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-de.js b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-de.js old mode 100644 new mode 100755 index c010a498e1..e3bf859ee6 --- a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-de.js +++ b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-de.js @@ -1,9 +1,12 @@ -/* Deutsch initialisation for the timepicker plugin */ -/* Written by Bernd Plagge (bplagge@choicenet.ne.jp). */ +/* German initialisation for the timepicker plugin */ +/* Written by Lowie Hulzinga. */ jQuery(function($){ $.timepicker.regional['de'] = { hourText: 'Stunde', minuteText: 'Minuten', - amPmText: ['AM', 'PM'] } + amPmText: ['AM', 'PM'] , + closeButtonText: 'Beenden', + nowButtonText: 'Aktuelle Zeit', + deselectButtonText: 'Wischen' } $.timepicker.setDefaults($.timepicker.regional['de']); -}); \ No newline at end of file +}); diff --git a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-es.js b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-es.js new file mode 100755 index 0000000000..b8bcbf859a --- /dev/null +++ b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-es.js @@ -0,0 +1,12 @@ +/* Spanish initialisation for the jQuery time picker plugin. */ +/* Writen by Jandro González (agonzalezalves@gmail.com) */ +jQuery(function($){ + $.timepicker.regional['es'] = { + hourText: 'Hora', + minuteText: 'Minuto', + amPmText: ['AM', 'PM'], + closeButtonText: 'Aceptar', + nowButtonText: 'Ahora', + deselectButtonText: 'Deseleccionar' } + $.timepicker.setDefaults($.timepicker.regional['es']); +}); diff --git a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-fr.js b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-fr.js old mode 100644 new mode 100755 diff --git a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-hr.js b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-hr.js new file mode 100755 index 0000000000..6950a16939 --- /dev/null +++ b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-hr.js @@ -0,0 +1,13 @@ +/* Croatian/Bosnian initialisation for the timepicker plugin */ +/* Written by Rene Brakus (rene.brakus@infobip.com). */ +jQuery(function($){ + $.timepicker.regional['hr'] = { + hourText: 'Sat', + minuteText: 'Minuta', + amPmText: ['Prijepodne', 'Poslijepodne'], + closeButtonText: 'Zatvoriti', + nowButtonText: 'Sada', + deselectButtonText: 'Poništite'} + + $.timepicker.setDefaults($.timepicker.regional['hr']); +}); \ No newline at end of file diff --git a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-it.js b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-it.js new file mode 100755 index 0000000000..ad20df3053 --- /dev/null +++ b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-it.js @@ -0,0 +1,12 @@ +/* Italian initialisation for the jQuery time picker plugin. */ +/* Written by Serge Margarita (serge.margarita@gmail.com) */ +jQuery(function($){ + $.timepicker.regional['it'] = { + hourText: 'Ore', + minuteText: 'Minuti', + amPmText: ['AM', 'PM'], + closeButtonText: 'Chiudi', + nowButtonText: 'Adesso', + deselectButtonText: 'Svuota' } + $.timepicker.setDefaults($.timepicker.regional['it']); +}); \ No newline at end of file diff --git a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-ja.js b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-ja.js old mode 100644 new mode 100755 index 01b2c8a3de..b38cf6e596 --- a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-ja.js +++ b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-ja.js @@ -4,6 +4,9 @@ jQuery(function($){ $.timepicker.regional['ja'] = { hourText: '時間', minuteText: '分', - amPmText: ['午前', '午後'] } + amPmText: ['午前', '午後'], + closeButtonText: '閉じる', + nowButtonText: '現時', + deselectButtonText: '選択解除' } $.timepicker.setDefaults($.timepicker.regional['ja']); }); diff --git a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-nl.js b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-nl.js new file mode 100755 index 0000000000..945d55ea0b --- /dev/null +++ b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-nl.js @@ -0,0 +1,12 @@ +/* Nederlands initialisation for the timepicker plugin */ +/* Written by Lowie Hulzinga. */ +jQuery(function($){ + $.timepicker.regional['nl'] = { + hourText: 'Uren', + minuteText: 'Minuten', + amPmText: ['AM', 'PM'], + closeButtonText: 'Sluiten', + nowButtonText: 'Actuele tijd', + deselectButtonText: 'Wissen' } + $.timepicker.setDefaults($.timepicker.regional['nl']); +}); \ No newline at end of file diff --git a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-pl.js b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-pl.js new file mode 100755 index 0000000000..9f401c5ad1 --- /dev/null +++ b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-pl.js @@ -0,0 +1,12 @@ +/* Polish initialisation for the timepicker plugin */ +/* Written by Mateusz Wadolkowski (mw@pcdoctor.pl). */ +jQuery(function($){ + $.timepicker.regional['pl'] = { + hourText: 'Godziny', + minuteText: 'Minuty', + amPmText: ['', ''], + closeButtonText: 'Zamknij', + nowButtonText: 'Teraz', + deselectButtonText: 'Odznacz'} + $.timepicker.setDefaults($.timepicker.regional['pl']); +}); \ No newline at end of file diff --git a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-pt-BR.js b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-pt-BR.js new file mode 100755 index 0000000000..9027332268 --- /dev/null +++ b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-pt-BR.js @@ -0,0 +1,12 @@ +/* Brazilan initialisation for the timepicker plugin */ +/* Written by Daniel Almeida (quantodaniel@gmail.com). */ +jQuery(function($){ + $.timepicker.regional['pt-BR'] = { + hourText: 'Hora', + minuteText: 'Minuto', + amPmText: ['AM', 'PM'], + closeButtonText: 'Fechar', + nowButtonText: 'Agora', + deselectButtonText: 'Limpar' } + $.timepicker.setDefaults($.timepicker.regional['pt-BR']); +}); \ No newline at end of file diff --git a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-sl.js b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-sl.js new file mode 100755 index 0000000000..0b7d9c9f6c --- /dev/null +++ b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-sl.js @@ -0,0 +1,12 @@ +/* Slovenian localization for the jQuery time picker plugin. */ +/* Written by Blaž Maležič (blaz@malezic.si) */ +jQuery(function($){ + $.timepicker.regional['sl'] = { + hourText: 'Ure', + minuteText: 'Minute', + amPmText: ['AM', 'PM'], + closeButtonText: 'Zapri', + nowButtonText: 'Zdaj', + deselectButtonText: 'Pobriši' } + $.timepicker.setDefaults($.timepicker.regional['sl']); +}); diff --git a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-sv.js b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-sv.js new file mode 100755 index 0000000000..d6d798ef38 --- /dev/null +++ b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-sv.js @@ -0,0 +1,12 @@ +/* Swedish initialisation for the timepicker plugin */ +/* Written by Björn Westlin (bjorn.westlin@su.se). */ +jQuery(function($){ + $.timepicker.regional['sv'] = { + hourText: 'Timme', + minuteText: 'Minut', + amPmText: ['AM', 'PM'] , + closeButtonText: 'Stäng', + nowButtonText: 'Nu', + deselectButtonText: 'Rensa' } + $.timepicker.setDefaults($.timepicker.regional['sv']); +}); diff --git a/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-tr.js b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-tr.js new file mode 100755 index 0000000000..4de447c474 --- /dev/null +++ b/3rdparty/timepicker/js/i18n/jquery.ui.timepicker-tr.js @@ -0,0 +1,12 @@ +/* Turkish initialisation for the jQuery time picker plugin. */ +/* Written by Mutlu Tevfik Koçak (mtkocak@gmail.com) */ +jQuery(function($){ + $.timepicker.regional['tr'] = { + hourText: 'Saat', + minuteText: 'Dakika', + amPmText: ['AM', 'PM'], + closeButtonText: 'Kapat', + nowButtonText: 'Şu anda', + deselectButtonText: 'Seçimi temizle' } + $.timepicker.setDefaults($.timepicker.regional['tr']); +}); \ No newline at end of file diff --git a/3rdparty/timepicker/js/jquery.ui.timepicker.js b/3rdparty/timepicker/js/jquery.ui.timepicker.js old mode 100644 new mode 100755 index d086b674b7..728841fa7a --- a/3rdparty/timepicker/js/jquery.ui.timepicker.js +++ b/3rdparty/timepicker/js/jquery.ui.timepicker.js @@ -1,5 +1,5 @@ /* - * jQuery UI Timepicker 0.2.9 + * jQuery UI Timepicker 0.3.1 * * Copyright 2010-2011, Francois Gelinas * Dual licensed under the MIT or GPL Version 2 licenses. @@ -38,12 +38,12 @@ ->T-Rex<- */ -(function ($, undefined) { +(function ($) { - $.extend($.ui, { timepicker: { version: "0.2.9"} }); + $.extend($.ui, { timepicker: { version: "0.3.1"} }); - var PROP_NAME = 'timepicker'; - var tpuuid = new Date().getTime(); + var PROP_NAME = 'timepicker', + tpuuid = new Date().getTime(); /* Time picker manager. Use the singleton instance of this class, $.timepicker, to interact with the time picker. @@ -53,7 +53,6 @@ function Timepicker() { this.debug = true; // Change this to true to start debugging this._curInst = null; // The current instance in use - this._isInline = false; // true if the instance is displayed inline this._disabledInputs = []; // List of time picker inputs that have been disabled this._timepickerShowing = false; // True if the popup picker is showing , false if not this._inDialog = false; // True if showing within a "dialog", false if not @@ -267,17 +266,23 @@ input[isRTL ? 'before' : 'after'](inst.append); } input.unbind('focus.timepicker', this._showTimepicker); + input.unbind('click.timepicker', this._adjustZIndex); + if (inst.trigger) { inst.trigger.remove(); } var showOn = this._get(inst, 'showOn'); if (showOn == 'focus' || showOn == 'both') { // pop-up time picker when in the marked field input.bind("focus.timepicker", this._showTimepicker); + input.bind("click.timepicker", this._adjustZIndex); } if (showOn == 'button' || showOn == 'both') { // pop-up time picker when 'button' element is clicked var button = this._get(inst, 'button'); $(button).bind("click.timepicker", function () { - if ($.timepicker._timepickerShowing && $.timepicker._lastInput == input[0]) { $.timepicker._hideTimepicker(); } - else { $.timepicker._showTimepicker(input[0]); } + if ($.timepicker._timepickerShowing && $.timepicker._lastInput == input[0]) { + $.timepicker._hideTimepicker(); + } else if (!inst.input.is(':disabled')) { + $.timepicker._showTimepicker(input[0]); + } return false; }); @@ -303,12 +308,19 @@ inst.tpDiv.show(); }, + _adjustZIndex: function(input) { + input = input.target || input; + var inst = $.timepicker._getInst(input); + inst.tpDiv.css('zIndex', $.timepicker._getZIndex(input) +1); + }, + /* Pop-up the time picker for a given input field. @param input element - the input field attached to the time picker or event - if triggered by focus */ _showTimepicker: function (input) { input = input.target || input; if (input.nodeName.toLowerCase() != 'input') { input = $('input', input.parentNode)[0]; } // find from button/image trigger + if ($.timepicker._isDisabledTimepicker(input) || $.timepicker._lastInput == input) { return; } // already here // fix v 0.0.8 - close current timepicker before showing another one @@ -389,7 +401,8 @@ }; // Fixed the zIndex problem for real (I hope) - FG - v 0.2.9 - inst.tpDiv.css('zIndex', $.timepicker._getZIndex(input) +1); + $.timepicker._adjustZIndex(input); + //inst.tpDiv.css('zIndex', $.timepicker._getZIndex(input) +1); if ($.effects && $.effects[showAnim]) { inst.tpDiv.show(showAnim, $.timepicker._get(inst, 'showOptions'), duration, postProcess); @@ -419,6 +432,16 @@ } }, + /* Refresh the time picker + @param target element - The target input field or inline container element. */ + _refreshTimepicker: function(target) { + var inst = this._getInst(target); + if (inst) { + this._updateTimepicker(inst); + } + }, + + /* Generate the time picker content. */ _updateTimepicker: function (inst) { inst.tpDiv.empty().append(this._generateHTML(inst)); @@ -467,7 +490,7 @@ .find('.' + this._dayOverClass + ' a') .trigger('mouseover') .end() - .find('.ui-timepicker-now').bind("click",function(e) { + .find('.ui-timepicker-now').bind("click", function(e) { $.timepicker.selectNow(e); }).end() .find('.ui-timepicker-deselect').bind("click",function(e) { @@ -786,6 +809,26 @@ }, + /* Detach a timepicker from its control. + @param target element - the target input field or division or span */ + _destroyTimepicker: function(target) { + var $target = $(target); + var inst = $.data(target, PROP_NAME); + if (!$target.hasClass(this.markerClassName)) { + return; + } + var nodeName = target.nodeName.toLowerCase(); + $.removeData(target, PROP_NAME); + if (nodeName == 'input') { + inst.append.remove(); + inst.trigger.remove(); + $target.removeClass(this.markerClassName) + .unbind('focus.timepicker', this._showTimepicker) + .unbind('click.timepicker', this._adjustZIndex); + } else if (nodeName == 'div' || nodeName == 'span') + $target.removeClass(this.markerClassName).empty(); + }, + /* Enable the date picker to a jQuery selection. @param target element - the target input field or division or span */ _enableTimepicker: function(target) { @@ -799,12 +842,17 @@ var nodeName = target.nodeName.toLowerCase(); if (nodeName == 'input') { target.disabled = false; + var button = this._get(inst, 'button'); + $(button).removeClass('ui-state-disabled').disabled = false; inst.trigger.filter('button'). each(function() { this.disabled = false; }).end(); } else if (nodeName == 'div' || nodeName == 'span') { var inline = $target.children('.' + this._inlineClass); inline.children().removeClass('ui-state-disabled'); + inline.find('button').each( + function() { this.disabled = false } + ) } this._disabledInputs = $.map(this._disabledInputs, function(value) { return (value == target_id ? null : value); }); // delete entry @@ -820,6 +868,9 @@ } var nodeName = target.nodeName.toLowerCase(); if (nodeName == 'input') { + var button = this._get(inst, 'button'); + + $(button).addClass('ui-state-disabled').disabled = true; target.disabled = true; inst.trigger.filter('button'). @@ -829,6 +880,10 @@ else if (nodeName == 'div' || nodeName == 'span') { var inline = $target.children('.' + this._inlineClass); inline.children().addClass('ui-state-disabled'); + inline.find('button').each( + function() { this.disabled = true } + ) + } this._disabledInputs = $.map(this._disabledInputs, function(value) { return (value == target ? null : value); }); // delete entry @@ -923,13 +978,9 @@ (showAnim == 'fadeIn' ? 'fadeOut' : 'hide'))]((showAnim ? duration : null), postProcess); } if (!showAnim) { postProcess(); } - var onClose = this._get(inst, 'onClose'); - if (onClose) { - onClose.apply( - (inst.input ? inst.input[0] : null), - [(inst.input ? inst.input.val() : ''), inst]); // trigger custom callback - } + this._timepickerShowing = false; + this._lastInput = null; if (this._inDialog) { this._dialogInput.css({ position: 'absolute', left: '0', top: '-100px' }); @@ -939,6 +990,14 @@ } } this._inDialog = false; + + var onClose = this._get(inst, 'onClose'); + if (onClose) { + onClose.apply( + (inst.input ? inst.input[0] : null), + [(inst.input ? inst.input.val() : ''), inst]); // trigger custom callback + } + } }, @@ -1106,12 +1165,10 @@ return retVal; }, - selectNow: function(e) { - - var id = $(e.target).attr("data-timepicker-instance-id"), + selectNow: function(event) { + var id = $(event.target).attr("data-timepicker-instance-id"), $target = $(id), inst = this._getInst($target[0]); - //if (!inst || (input && inst != $.data(input, PROP_NAME))) { return; } var currentTime = new Date(); inst.hours = currentTime.getHours(); @@ -1121,8 +1178,8 @@ this._hideTimepicker(); }, - deselectTime: function(e) { - var id = $(e.target).attr("data-timepicker-instance-id"), + deselectTime: function(event) { + var id = $(event.target).attr("data-timepicker-instance-id"), $target = $(id), inst = this._getInst($target[0]); inst.hours = -1; @@ -1135,7 +1192,7 @@ selectHours: function (event) { var $td = $(event.currentTarget), id = $td.attr("data-timepicker-instance-id"), - newHours = $td.attr("data-hour"), + newHours = parseInt($td.attr("data-hour")), fromDoubleClick = event.data.fromDoubleClick, $target = $(id), inst = this._getInst($target[0]), @@ -1168,7 +1225,7 @@ selectMinutes: function (event) { var $td = $(event.currentTarget), id = $td.attr("data-timepicker-instance-id"), - newMinutes = $td.attr("data-minute"), + newMinutes = parseInt($td.attr("data-minute")), fromDoubleClick = event.data.fromDoubleClick, $target = $(id), inst = this._getInst($target[0]), @@ -1213,8 +1270,10 @@ return ''; } - if ((inst.hours < 0) || (inst.hours > 23)) { inst.hours = 12; } - if ((inst.minutes < 0) || (inst.minutes > 59)) { inst.minutes = 0; } + // default to 0 AM if hours is not valid + if ((inst.hours < inst.hours.starts) || (inst.hours > inst.hours.ends )) { inst.hours = 0; } + // default to 0 minutes if minute is not valid + if ((inst.minutes < inst.minutes.starts) || (inst.minutes > inst.minutes.ends)) { inst.minutes = 0; } var period = "", showPeriod = (this._get(inst, 'showPeriod') == true), @@ -1309,6 +1368,8 @@ $.timepicker.initialized = true; } + + var otherArgs = Array.prototype.slice.call(arguments, 1); if (typeof options == 'string' && (options == 'getTime' || options == 'getHour' || options == 'getMinute' )) return $.timepicker['_' + options + 'Timepicker']. @@ -1336,7 +1397,7 @@ $.timepicker = new Timepicker(); // singleton instance $.timepicker.initialized = false; $.timepicker.uuid = new Date().getTime(); - $.timepicker.version = "0.2.9"; + $.timepicker.version = "0.3.1"; // Workaround for #4055 // Add another global to avoid noConflict issues with inline event handlers diff --git a/3rdparty/timepicker/releases.txt b/3rdparty/timepicker/releases.txt old mode 100644 new mode 100755 index 64622d4942..99ecbafdac --- a/3rdparty/timepicker/releases.txt +++ b/3rdparty/timepicker/releases.txt @@ -1,3 +1,13 @@ +Release 0.3.0 - 27 March 2012 +Fixed a zIndex problem in jQuery Dialog when the user clicked on the input while the timepicker was still visible. +Added Czech translation, thanks David Spohr +Added Swedish translation, thanks Björn Westlin +Added Dutch translation, thanks Lowie Hulzinga +Prevent showing the timepicker dialog with the button when disabled(Thanks ruhley. ref #38) +Add ui-state-disabled class to button trigger when disabled. +Fixed onClose function on first time passes the hours variable as string (Thanks Zanisimo, ref #39) +Added "refresh" method $('selector').timepicker('refresh'); + Release 0.2.9 - November 13, 2011 Fixed the zIndex problem and removed the zIndex option (Thanks everyone who reported the problem) Fix a bug where repeatedly clicking on hour cells made the timepicker very slow.