another small fix
This commit is contained in:
parent
c0884fb1e4
commit
e04a261992
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue