Add rtl layout support

new option: rtl (bool)
it true => add xdsoft_rtl css class to widget
This commit is contained in:
psyafter 2015-08-19 11:47:23 +03:00
parent 3641f66516
commit 915fe4c13f

View File

@ -443,6 +443,7 @@
},
value: '',
lang: 'en',
rtl: false,
format: 'Y/m/d H:i',
formatTime: 'H:i',
@ -800,6 +801,9 @@
if (options.weeks) {
datetimepicker.addClass('xdsoft_showweeks');
}
if (options.rtl) {
datetimepicker.addClass('xdsoft_rtl');
}
datetimepicker.addClass('xdsoft_' + options.theme);
datetimepicker.addClass(options.className);