Skip to content

Commit

Permalink
Fixing bug:3803 'Grid editing a DATE column'
Browse files Browse the repository at this point in the history
  • Loading branch information
atul516 committed Feb 8, 2013
1 parent 87b0c7c commit 6ae4f1b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/functions.js
Expand Up @@ -225,8 +225,11 @@ function PMA_addDatepicker($this_element, options)
$this_element.data('comes_from', '');
}
};

$this_element.datetimepicker($.extend(defaultOptions, options));
if ( showTimeOption || (typeof(options) != 'undefined' && options.showTimepicker) ) {
$this_element.datetimepicker($.extend(defaultOptions, options));
} else {
$this_element.datepicker($.extend(defaultOptions, options));
}
}

/**
Expand Down

0 comments on commit 6ae4f1b

Please sign in to comment.