another small fix

This commit is contained in:
John Bintz 2009-10-01 23:59:17 -04:00
parent c0884fb1e4
commit e04a261992
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@
<textarea class="edit-transcript" name="wdts[transcripts][<?php echo $code ?>]" style="display: none; width: 99%; height: 200px"><?php echo $approved_transcript_text ?></textarea>
<?php } ?>
<?php if (!is_admin()) { ?>
<input type="button" class="button" class="wdts-modify-transcript" value="<?php _e('Update All Transcripts', 'what-did-they-say') ?>" />
<input type="button" class="wdts-modify-transcript button" value="<?php _e('Update All Transcripts', 'what-did-they-say') ?>" />
<span class="wdts-update-message"></span>
<?php } ?>
</div>

View File

@ -108,7 +108,7 @@ WhatDidTheySay.setup_transcript_editor = function(container) {
// submit button handling
var submit_button = container.select('.wdts-modify-transcript').pop();
var update_message = container.select('.wdts-update-message').pop();
var post_id = $(container.parentNode).select("input[name*=[post_id]]").shift();
var post_id = $(container.parentNode.parentNode).select("input[name*=[post_id]]").shift();
if (submit_button && update_message && post_id) {
post_id = post_id.value;