diff options
Diffstat (limited to 'includes/sys_form.php')
-rw-r--r-- | includes/sys_form.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/sys_form.php b/includes/sys_form.php index f9779ec7..b5a957c0 100644 --- a/includes/sys_form.php +++ b/includes/sys_form.php @@ -73,11 +73,12 @@ function form_date($name, $label, $value, $start_date = '', $end_date = '') return form_element($label, ' <div class="input-group date" id="' . $dom_id . '"> - <input type="date" name="' . $name . '" class="form-control" value="' . htmlspecialchars($value) . '">' + <input type="date" placeholder="YYYY-MM-DD" name="' . $name . '" class="form-control" value="' . htmlspecialchars($value) . '">' . '<span class="input-group-addon">' . glyph('th') . '</span> </div> <script type="text/javascript"> $(function(){ + $("#' . $dom_id . '").children("input").attr("type", "text"); $("#' . $dom_id . '").datepicker({ language: "' . $shortLocale . '", todayBtn: "linked", |