aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/i18n/datepicker-af.js38
-rw-r--r--ui/i18n/datepicker-ar-DZ.js36
-rw-r--r--ui/widgets/datepicker.js14
3 files changed, 44 insertions, 44 deletions
diff --git a/ui/i18n/datepicker-af.js b/ui/i18n/datepicker-af.js
index 6c5355696..f13315e10 100644
--- a/ui/i18n/datepicker-af.js
+++ b/ui/i18n/datepicker-af.js
@@ -1,37 +1,37 @@
/* Afrikaans initialisation for the jQuery UI date picker plugin. */
/* Written by Renier Pretorius. */
-(function( factory ) {
+( function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
- define([ "../widgets/datepicker" ], factory );
+ define( [ "../widgets/datepicker" ], factory );
} else {
// Browser globals
factory( jQuery.datepicker );
}
-}(function( datepicker ) {
+}( function( datepicker ) {
-datepicker.regional['af'] = {
- closeText: 'Selekteer',
- prevText: 'Vorige',
- nextText: 'Volgende',
- currentText: 'Vandag',
- monthNames: ['Januarie','Februarie','Maart','April','Mei','Junie',
- 'Julie','Augustus','September','Oktober','November','Desember'],
- monthNamesShort: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun',
- 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
- dayNames: ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'],
- dayNamesShort: ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'],
- dayNamesMin: ['So','Ma','Di','Wo','Do','Vr','Sa'],
+datepicker.regional[ "af" ] = {
+ closeText: "Selekteer",
+ prevText: "Vorige",
+ nextText: "Volgende",
+ currentText: "Vandag",
+ monthNames: [ "Januarie","Februarie","Maart","April","Mei","Junie",
+ "Julie","Augustus","September","Oktober","November","Desember" ],
+ monthNamesShort: [ "Jan", "Feb", "Mrt", "Apr", "Mei", "Jun",
+ "Jul", "Aug", "Sep", "Okt", "Nov", "Des" ],
+ dayNames: [ "Sondag", "Maandag", "Dinsdag", 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag' ],
+ dayNamesShort: [ 'Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat' ],
+ dayNamesMin: [ 'So','Ma','Di','Wo','Do','Vr','Sa' ],
weekHeader: 'Wk',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
- yearSuffix: ''};
-datepicker.setDefaults(datepicker.regional['af']);
+ yearSuffix: '' };
+datepicker.setDefaults( datepicker.regional[ 'af' ] );
-return datepicker.regional['af'];
+return datepicker.regional[ 'af' ];
-}));
+} ) );
diff --git a/ui/i18n/datepicker-ar-DZ.js b/ui/i18n/datepicker-ar-DZ.js
index ff003c998..ab8c1f08b 100644
--- a/ui/i18n/datepicker-ar-DZ.js
+++ b/ui/i18n/datepicker-ar-DZ.js
@@ -1,37 +1,37 @@
/* Algerian Arabic Translation for jQuery UI date picker plugin. (can be used for Tunisia)*/
/* Mohamed Cherif BOUCHELAGHEM -- cherifbouchelaghem@yahoo.fr */
-(function( factory ) {
+( function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
- define([ "../widgets/datepicker" ], factory );
+ define( [ "../widgets/datepicker" ], factory );
} else {
// Browser globals
factory( jQuery.datepicker );
}
-}(function( datepicker ) {
+}( function( datepicker ) {
-datepicker.regional['ar-DZ'] = {
- closeText: 'إغلاق',
- prevText: '<السابق',
- nextText: 'التالي>',
- currentText: 'اليوم',
- monthNames: ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان',
- 'جويلية', 'أوت', 'سبتمبر','أكتوبر', 'نوفمبر', 'ديسمبر'],
- monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
- dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
- dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
- dayNamesMin: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
+datepicker.regional[ "ar-DZ" ] = {
+ closeText: "إغلاق",
+ prevText: "<السابق",
+ nextText: "التالي>",
+ currentText: "اليوم",
+ monthNames: [ "جانفي", "فيفري", "مارس", "أفريل", "ماي", "جوان",
+ "جويلية", "أوت", "سبتمبر","أكتوبر", "نوفمبر", "ديسمبر" ],
+ monthNamesShort: [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", '12' ],
+ dayNames: [ 'الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت' ],
+ dayNamesShort: [ 'الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت' ],
+ dayNamesMin: [ 'الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت' ],
weekHeader: 'أسبوع',
dateFormat: 'dd/mm/yy',
firstDay: 6,
isRTL: true,
showMonthAfterYear: false,
- yearSuffix: ''};
-datepicker.setDefaults(datepicker.regional['ar-DZ']);
+ yearSuffix: '' };
+datepicker.setDefaults( datepicker.regional[ 'ar-DZ' ] );
-return datepicker.regional['ar-DZ'];
+return datepicker.regional[ 'ar-DZ' ];
-}));
+} ) );
diff --git a/ui/widgets/datepicker.js b/ui/widgets/datepicker.js
index 85b658319..36e7ef327 100644
--- a/ui/widgets/datepicker.js
+++ b/ui/widgets/datepicker.js
@@ -360,7 +360,7 @@ $.extend(Datepicker.prototype, {
[(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY];
}
- // move input on screen for focus, but hidden behind dialog
+ // Move input on screen for focus, but hidden behind dialog
this._dialogInput.css("left", (this._pos[0] + 20) + "px").css("top", this._pos[1] + "px");
inst.settings.onSelect = onSelect;
this._inDialog = true;
@@ -547,7 +547,7 @@ $.extend(Datepicker.prototype, {
}
},
- // change method deprecated
+ // Change method deprecated
_changeDatepicker: function(target, name, value) {
this._optionDatepicker(target, name, value);
},
@@ -611,7 +611,7 @@ $.extend(Datepicker.prototype, {
if (onSelect) {
dateStr = $.datepicker._formatDate(inst);
- // trigger custom callback
+ // Trigger custom callback
onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]);
} else {
$.datepicker._hideDatepicker();
@@ -836,7 +836,7 @@ $.extend(Datepicker.prototype, {
inst.input.trigger( "focus" );
}
- // deffered render of the years select (to avoid flashes on Firefox)
+ // Deffered render of the years select (to avoid flashes on Firefox)
if( inst.yearshtml ){
origyearshtml = inst.yearshtml;
setTimeout(function(){
@@ -869,7 +869,7 @@ $.extend(Datepicker.prototype, {
offset.left -= (isFixed && offset.left === inst.input.offset().left) ? $(document).scrollLeft() : 0;
offset.top -= (isFixed && offset.top === (inst.input.offset().top + inputHeight)) ? $(document).scrollTop() : 0;
- // now check if datepicker is showing outside window viewport - move to a better place if so.
+ // Now check if datepicker is showing outside window viewport - move to a better place if so.
offset.left -= Math.min(offset.left, (offset.left + dpWidth > viewWidth && viewWidth > dpWidth) ?
Math.abs(offset.left + dpWidth - viewWidth) : 0);
offset.top -= Math.min(offset.top, (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ?
@@ -1824,7 +1824,7 @@ $.extend(Datepicker.prototype, {
html = "<div class='ui-datepicker-title'>",
monthHtml = "";
- // month selection
+ // Month selection
if (secondary || !changeMonth) {
monthHtml += "<span class='ui-datepicker-month'>" + monthNames[drawMonth] + "</span>";
} else {
@@ -1845,7 +1845,7 @@ $.extend(Datepicker.prototype, {
html += monthHtml + (secondary || !(changeMonth && changeYear) ? "&#xa0;" : "");
}
- // year selection
+ // Year selection
if ( !inst.yearshtml ) {
inst.yearshtml = "";
if (secondary || !changeYear) {