File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,10 @@ <h3>Download</h3>
106
106
.ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
107
107
.ui-timepicker-div td { font-size: 90%; }
108
108
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
109
+
110
+ .ui-timepicker-rtl{ direction: rtl; }
111
+ .ui-timepicker-rtl dl { text-align: right; }
112
+ .ui-timepicker-rtl dl dd { margin: 0 65px 10px 10px; }
109
113
</ pre >
110
114
111
115
< h3 > Requirements</ h3 >
Original file line number Diff line number Diff line change 4
4
.ui-timepicker-div dl dd { margin : 0 10px 10px 65px ; }
5
5
.ui-timepicker-div td { font-size : 90% ; }
6
6
.ui-tpicker-grid-label { background : none; border : none; margin : 0 ; padding : 0 ; }
7
+
8
+ .ui-timepicker-rtl { direction : rtl; }
9
+ .ui-timepicker-rtl dl { text-align : right; }
10
+ .ui-timepicker-rtl dl dd { margin : 0 65px 10px 10px ; }
Original file line number Diff line number Diff line change 61
61
minuteText : 'Minute' ,
62
62
secondText : 'Second' ,
63
63
millisecText : 'Millisecond' ,
64
- timezoneText : 'Time Zone'
64
+ timezoneText : 'Time Zone' ,
65
+ isRTL : false
65
66
} ;
66
67
this . _defaults = { // Global defaults for all the datetime picker instances
67
68
showButtonPanel : true ,
326
327
// Prevent displaying twice
327
328
if ( $dp . find ( "div.ui-timepicker-div" ) . length === 0 && o . showTimepicker ) {
328
329
var noDisplay = ' style="display:none;"' ,
329
- html = '<div class="ui-timepicker-div"><dl>' + '<dt class="ui_tpicker_time_label"' + ( ( o . showTime ) ? '' : noDisplay ) + '>' + o . timeText + '</dt>' +
330
+ html = '<div class="ui-timepicker-div' + ( o . isRTL ? ' ui-timepicker-rtl' : '' ) + ' "><dl>' + '<dt class="ui_tpicker_time_label"' + ( ( o . showTime ) ? '' : noDisplay ) + '>' + o . timeText + '</dt>' +
330
331
'<dd class="ui_tpicker_time"' + ( ( o . showTime ) ? '' : noDisplay ) + '></dd>' ;
331
332
332
333
// Create the markup
You can’t perform that action at this time.
0 commit comments