diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js index fe224d0..e7c246a 100755 --- a/jquery-ui-timepicker-addon.js +++ b/jquery-ui-timepicker-addon.js @@ -21,7 +21,12 @@ this.regional = []; // Available regional settings, indexed by language code this.regional[''] = { // Default regional settings ampm: false, - timeFormat: 'hh:mm tt' + timeFormat: 'hh:mm tt', + timepickerTitle: 'Choose Time', + timeText: 'Time', + hourText: 'Hour', + minuteText: 'Minute', + secondText: 'Second' }; this.defaults = { // Global defaults for all the datetime picker instances holdDatepickerOpen: true, @@ -164,13 +169,13 @@ var noDisplay = ' style="display:none;"'; var html = '
' + - '
Time
' + + '
'+ opts.timeText +'
' + '
' + - '
Hour
' + + '
'+ opts.hourText +'
' + '
' + - '
Minute
' + + '
'+ opts.minuteText +'
' + '
' + - '
Second
' + + '
'+ opts.secondText +'
' + '
' + '
'; $tp = $(html); @@ -179,7 +184,7 @@ if (opts.timeOnly === true) { $tp.prepend( '
' + - '
Choose Time
' + + '
'+ opts.timepickerTitle +'
' + '
'); $dp.find('.ui-datepicker-header, .ui-datepicker-calendar, .ui-datepicker-current').hide(); }