Browse Source

Added step=1 to the time input to add seconds selection.

Without the step modifier users on Chrome mobile couldn't edit
blogs because the seconds were missing
(hh:mm while hh:mm:ss was expected)

This is my first commit, hope it worked :)
pull/286/head
MarsNL 9 years ago
parent
commit
d378abac36
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      system/admin/views/edit-content.html.php

+ 2
- 2
system/admin/views/edit-content.html.php View File

@ -95,7 +95,7 @@ if (config('permalink.type') == 'post') {
<input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"> <input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>">
<br> <br>
Hour, Minute, Second<br> Hour, Minute, Second<br>
<input type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>">
<input step="1" type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>">
<br><br> <br><br>
Meta Description (optional)<br> Meta Description (optional)<br>
<textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) { echo $p->description; } else { echo $olddescription;} ?></textarea> <textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) { echo $p->description; } else { echo $olddescription;} ?></textarea>
@ -170,4 +170,4 @@ if (config('permalink.type') == 'post') {
<div id="wmd-preview" class="wmd-panel wmd-preview"></div> <div id="wmd-preview" class="wmd-panel wmd-preview"></div>
<!-- Declare the base path. Important --> <!-- Declare the base path. Important -->
<script type="text/javascript">var base_path = '<?php echo site_url() ?>';</script> <script type="text/javascript">var base_path = '<?php echo site_url() ?>';</script>
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/editor.js"></script>
<script type="text/javascript" src="<?php echo site_url() ?>system/admin/editor/js/editor.js"></script>

Loading…
Cancel
Save