diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index 22b961c..0e8c840 100644 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -735,7 +735,7 @@ }; createDateTimePicker = function (input) { - var datetimepicker = $('
'), + var datetimepicker = $('
'), xdsoft_copyright = $(''), datepicker = $('
'), mounth_picker = $('
' + @@ -762,6 +762,13 @@ timer1 = 0, _xdsoft_datetime; + if (options.id) datetimepicker.attr('id', options.id); + if (options.style) datetimepicker.attr('style', options.style); + if (options.weeks) datetimepicker.addClass('xdsoft_showweeks'); + + datetimepicker.addClass('xdsoft_' + options.theme); + datetimepicker.addClass(options.className); + mounth_picker .find('.xdsoft_month span') .after(monthselect);