Skip to content

Commit

Permalink
Fix date field regression
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesypoof committed Aug 7, 2016
1 parent 2213205 commit 255855c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion couch/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ function _render( $input_name, $input_id, $extra='' ){
<label for="f_publish_status_1" onClick="$('#publish-date').show()"><input type="radio" <?php if( $publish_date != '0000-00-00 00:00:00' ){?>checked="checked"<?php } ?> value="1" id="f_publish_status_1" name="f_publish_status"/><span class="ctrl-option"></span><?php echo $FUNCS->t('published'); ?></label>
<label for="f_publish_status_0" onClick="$('#publish-date').hide()"><input type="radio" <?php if( $publish_date == '0000-00-00 00:00:00' ){?>checked="checked"<?php } ?> value="0" id="f_publish_status_0" name="f_publish_status"/><span class="ctrl-option"></span><?php echo $FUNCS->t('unpublished'); ?></label>
</div>
<div id="publish-date" style="display:<?php if( $publish_date == '0000-00-00 00:00:00' ){ echo 'hidden'; } else{ echo 'block'; }?>;">
<div id="publish-date" style="display:<?php if( $publish_date == '0000-00-00 00:00:00' ){ echo 'none'; } else{ echo 'block'; }?>;">
<?php echo $FUNCS->date_dropdowns( $publish_date ); ?>
</div>
<?php
Expand Down

0 comments on commit 255855c

Please sign in to comment.