From 4e7fdcda5389d81e34c8e86f9651f7746c9622d6 Mon Sep 17 00:00:00 2001 From: Akihiro Uchida Date: Thu, 9 Apr 2015 20:17:39 +0900 Subject: [PATCH] Fixed codes to disable input datepicker. --- .../godmode/agentes/planned_downtime.editor.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_console/godmode/agentes/planned_downtime.editor.php b/pandora_console/godmode/agentes/planned_downtime.editor.php index 1c17f5d4b3..a80127a459 100755 --- a/pandora_console/godmode/agentes/planned_downtime.editor.php +++ b/pandora_console/godmode/agentes/planned_downtime.editor.php @@ -352,11 +352,9 @@ $table->data[5][1] = " __('From:') . " ". - html_print_input_text_extended ('once_date_from', $once_date_from, '', 10, 10, true, - $disabled_in_execution, '', $disabled_in_execution ? "disabled=disabled" : '') . + html_print_input_text ('once_date_from', $once_date_from, '', 10, 10, true, $disabled_in_execution) . 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, - $disabled_in_execution, '', $disabled_in_execution ? "disabled=disabled" : '') . + html_print_input_text ('once_time_from', $once_time_from, '', 9, 9, true, $disabled_in_execution) . ui_print_help_tip(__('Time format in Pandora is hours(24h):minutes:seconds'), true) . " @@ -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(); });