mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed codes to disable input datepicker.
This commit is contained in:
parent
9353bdcdcb
commit
4e7fdcda53
@ -352,11 +352,9 @@ $table->data[5][1] = "
|
|||||||
__('From:') .
|
__('From:') .
|
||||||
"</td>
|
"</td>
|
||||||
<td>".
|
<td>".
|
||||||
html_print_input_text_extended ('once_date_from', $once_date_from, '', 10, 10, true,
|
html_print_input_text ('once_date_from', $once_date_from, '', 10, 10, true, $disabled_in_execution) .
|
||||||
$disabled_in_execution, '', $disabled_in_execution ? "disabled=disabled" : '') .
|
|
||||||
ui_print_help_tip(__('Date format in Pandora is year/month/day'), true) .
|
ui_print_help_tip(__('Date format in Pandora is year/month/day'), true) .
|
||||||
html_print_input_text_extended ('once_time_from', $once_time_from, '', 9, 9, true,
|
html_print_input_text ('once_time_from', $once_time_from, '', 9, 9, true, $disabled_in_execution) .
|
||||||
$disabled_in_execution, '', $disabled_in_execution ? "disabled=disabled" : '') .
|
|
||||||
ui_print_help_tip(__('Time format in Pandora is hours(24h):minutes:seconds'), true) .
|
ui_print_help_tip(__('Time format in Pandora is hours(24h):minutes:seconds'), true) .
|
||||||
"</td>
|
"</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -1008,5 +1006,7 @@ ui_require_jquery_file("ui.datepicker-" . get_user_language(), "include/javascri
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// Disable datepickers when it has readonly attribute
|
||||||
|
$('input.hasDatepicker[readonly]').disable();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user