To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Show
Ignore:
Timestamp:
04/30/10 17:20:39 (2 years ago)
Author:
johnnyoffline
Message:

dan and i made the rich date widget auto save on change. sweet

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostropheBlogPlugin/trunk/modules/aBlogAdmin/templates/_form.php

    r1111 r1113  
    88 
    99 
    10  
    1110<?php // Title and Slug are hidden and handled with inputs in the editSuccess ?> 
    1211<div class="post-title post-slug option"> 
     
    1514  <?php echo $form['slug']->renderError() ?> 
    1615</div> 
    17  
    1816 
    1917 
     
    3331 
    3432        <div class="post-published-at option"> 
    35           <?php echo $form['published_at']->render() ?> 
     33          <?php echo $form['published_at']->render(array('onClose' => 'updateBlogMulti')) ?> 
    3634          <?php echo $form['published_at']->renderError() ?> 
    37  
    38           <?php 
    39           // Dan: 
    40           // All of a sudden we have save and cancel buttons now. 
    41           // So apparently when you click save it makes this change 
    42           // If you click cancel it some how restores it to 'Publish Now' – It doesn't just simply hide this options pane 
    43           ?> 
    44           <ul class="a-controls published_at"> 
    45             <li><a href="#" onclick="checkAndSetPublish('<?php echo $a_blog_post->status  ?>','<?php echo url_for('a_blog_admin_update',$a_blog_post) ?>'); return false;" class="a-btn a-save"><?php echo __('Save', array(), 'apostrophe_blog') ?></a></li> 
    46             <li><a href="#" onclick="checkAndSetPublish('<?php echo $a_blog_post->status  ?>','<?php echo url_for('a_blog_admin_update',$a_blog_post) ?>'); return false;" class="a-btn a-cancel"><?php echo __('Cancel', array(), 'apostrophe_blog') ?></a></li> 
    47           </ul> 
    4835        </div> 
    4936</div> 
     
    143130<?php endif ?> 
    144131 
    145 <?php include_partial('aBlogAdmin/formScripts', array('a_blog_post' => $a_blog_post)) ?> 
     132<?php include_partial('aBlogAdmin/formScripts', array('a_blog_post' => $a_blog_post, 'form' => $form)) ?>