Check 'Edit Timestamp' checkbox whenever the timestamp fields are changed. Props abhay. fixes #2574

git-svn-id: https://develop.svn.wordpress.org/trunk@3648 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-03-20 20:57:01 +00:00
parent 940499731d
commit 70fcfebda4
1 changed files with 6 additions and 6 deletions

View File

@ -969,7 +969,7 @@ function touch_time($edit = 1, $for_post = 1) {
$mn = ($edit) ? mysql2date('i', $post_date) : gmdate('i', $time_adj);
$ss = ($edit) ? mysql2date('s', $post_date) : gmdate('s', $time_adj);
echo "<select name=\"mm\">\n";
echo "<select name=\"mm\" onChange=\"edit_date.checked=true\">\n";
for ($i = 1; $i < 13; $i = $i +1) {
echo "\t\t\t<option value=\"$i\"";
if ($i == $mm)
@ -983,11 +983,11 @@ function touch_time($edit = 1, $for_post = 1) {
}
?>
</select>
<input type="text" id="jj" name="jj" value="<?php echo $jj; ?>" size="2" maxlength="2" />
<input type="text" id="aa" name="aa" value="<?php echo $aa ?>" size="4" maxlength="5" /> @
<input type="text" id="hh" name="hh" value="<?php echo $hh ?>" size="2" maxlength="2" /> :
<input type="text" id="mn" name="mn" value="<?php echo $mn ?>" size="2" maxlength="2" />
<input type="hidden" id="ss" name="ss" value="<?php echo $ss ?>" size="2" maxlength="2" />
<input type="text" id="jj" name="jj" value="<?php echo $jj; ?>" size="2" maxlength="2" onChange="edit_date.checked=true"/>
<input type="text" id="aa" name="aa" value="<?php echo $aa ?>" size="4" maxlength="5" onChange="edit_date.checked=true" /> @
<input type="text" id="hh" name="hh" value="<?php echo $hh ?>" size="2" maxlength="2" onChange="edit_date.checked=true" /> :
<input type="text" id="mn" name="mn" value="<?php echo $mn ?>" size="2" maxlength="2" onChange="edit_date.checked=true" />
<input type="hidden" id="ss" name="ss" value="<?php echo $ss ?>" size="2" maxlength="2" onChange="edit_date.checked=true" />
<?php
if ( $edit ) {
_e('Existing timestamp');