refactoring : datepickerFallback not for datetime CustomField format
modifié : assets/javascripts/issue_dynamic_edit.js
This commit is contained in:
parent
330cbf5a6a
commit
18331d94d2
@ -218,13 +218,12 @@ function initEditFields() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cf_datetime = $('body').find('#dynamic_issue_custom_field_values_' + info.id);
|
||||||
if (info.field_format == "datetime") {
|
if (info.field_format == "datetime") {
|
||||||
if (
|
if (
|
||||||
$('body').find('#dynamic_issue_custom_field_values_' + info.id).length &&
|
cf_datetime.length &&
|
||||||
$('body').find('#dynamic_issue_custom_field_values_' + info.id).datepickerFallback instanceof Function &&
|
typeof datetimepickerOptions !== 'undefined'
|
||||||
typeof datepickerOptions !== 'undefined'
|
|
||||||
) {
|
) {
|
||||||
cf_datetime = $('body').find('#dynamic_issue_custom_field_values_' + info.id);
|
|
||||||
cf_datetime.datetimepicker(datetimepickerOptions);
|
cf_datetime.datetimepicker(datetimepickerOptions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user