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

git-svn-id: http://svn.automattic.com/wordpress/trunk@3648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-03-20 20:57:01 +00:00
parent 79ba4ca2ec
commit 3262f36318
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');