Display date/time picker only for date/time fields
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
This commit is contained in:
parent
bee397e680
commit
16efdd1b5f
@ -112,6 +112,10 @@ $.ajaxPrefilter(function (options, originalOptions) {
|
||||
* @param {object} $thisElement a jQuery object pointing to the element
|
||||
*/
|
||||
Functions.addDatepicker = function ($thisElement, type, options) {
|
||||
if (type !== 'date' && type !== 'time' && type !== 'datetime' && type !== 'timestamp') {
|
||||
return;
|
||||
}
|
||||
|
||||
var showTimepicker = true;
|
||||
if (type === 'date') {
|
||||
showTimepicker = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user