WordPress.org

Make WordPress Core

Changeset 3648


Ignore:
Timestamp:
03/20/06 20:57:01 (8 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r3632 r3648  
    970970    $ss = ($edit) ? mysql2date('s', $post_date) : gmdate('s', $time_adj); 
    971971 
    972     echo "<select name=\"mm\">\n"; 
     972    echo "<select name=\"mm\" onChange=\"edit_date.checked=true\">\n"; 
    973973    for ($i = 1; $i < 13; $i = $i +1) { 
    974974        echo "\t\t\t<option value=\"$i\""; 
     
    984984?> 
    985985</select> 
    986 <input type="text" id="jj" name="jj" value="<?php echo $jj; ?>" size="2" maxlength="2" /> 
    987 <input type="text" id="aa" name="aa" value="<?php echo $aa ?>" size="4" maxlength="5" /> @  
    988 <input type="text" id="hh" name="hh" value="<?php echo $hh ?>" size="2" maxlength="2" /> :  
    989 <input type="text" id="mn" name="mn" value="<?php echo $mn ?>" size="2" maxlength="2" />  
    990 <input type="hidden" id="ss" name="ss" value="<?php echo $ss ?>" size="2" maxlength="2" />  
     986<input type="text" id="jj" name="jj" value="<?php echo $jj; ?>" size="2" maxlength="2" onChange="edit_date.checked=true"/> 
     987<input type="text" id="aa" name="aa" value="<?php echo $aa ?>" size="4" maxlength="5" onChange="edit_date.checked=true" /> @  
     988<input type="text" id="hh" name="hh" value="<?php echo $hh ?>" size="2" maxlength="2" onChange="edit_date.checked=true" /> :  
     989<input type="text" id="mn" name="mn" value="<?php echo $mn ?>" size="2" maxlength="2" onChange="edit_date.checked=true" />  
     990<input type="hidden" id="ss" name="ss" value="<?php echo $ss ?>" size="2" maxlength="2" onChange="edit_date.checked=true" />  
    991991<?php 
    992992    if ( $edit ) { 
Note: See TracChangeset for help on using the changeset viewer.