Changeset 2857

Show
Ignore:
Timestamp:
11/24/08 03:05:14 (7 weeks ago)
Author:
chrismeller
Message:

Change the type of the publish button from 'submit' to 'button' so 'Save' becomes the default functionality for a new entry. I'm sure this will come up for debate again, but in the meantime it fixes ticket #555, which has waited long enough for a resolution.

We won't even ask why the 'Publish' button alone is added via javascript instead of in the FormUI that generates the rest of the form... at least not tonight.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/system/admin/publish.php

    r2620 r2857  
    2020 
    2121    <?php if(isset($statuses['published']) && $post->status != $statuses['published']) : ?> 
    22     $('.container.buttons').prepend($('<input type="submit" name="submit" id="publish" class="button publish" tabindex="5" value="<?php _e('Publish'); ?>">')); 
     22    $('.container.buttons').prepend($('<input type="button" name="submit" id="publish" class="button publish" tabindex="5" value="<?php _e('Publish'); ?>">')); 
    2323    $('#publish').click( function() { 
    2424        $('#status').val(<?php echo $statuses['published']; ?>);