final approval fix

This commit is contained in:
John Bintz 2009-10-01 23:00:07 -04:00
parent e5bbd400b9
commit 80f3c6ea7b
2 changed files with 6 additions and 3 deletions

View File

@ -60,6 +60,8 @@
WhatDidTheySay.setup_transcript_action_buttons(q, 'wdts-<?php echo $approved_editor_id ?>') WhatDidTheySay.setup_transcript_action_buttons(q, 'wdts-<?php echo $approved_editor_id ?>')
}); });
$$('.wdts-embed-warning').invoke('hide');
WhatDidTheySay.setup_transcript_editor('wdts-<?php echo $approved_editor_id ?>'); WhatDidTheySay.setup_transcript_editor('wdts-<?php echo $approved_editor_id ?>');
<?php if (!is_admin()) { ?> <?php if (!is_admin()) { ?>
<?php <?php

View File

@ -164,7 +164,6 @@ WhatDidTheySay.setup_transcript_action_buttons = function(container, approved_ed
[ [
[ 'approve', [ 'approve',
function(e) { function(e) {
Event.stop(e);
var lang = container.select("input[name*=[language]]").shift(); var lang = container.select("input[name*=[language]]").shift();
var post_id = container.select("input[name*=[post_id]]").shift(); var post_id = container.select("input[name*=[post_id]]").shift();
@ -175,8 +174,9 @@ WhatDidTheySay.setup_transcript_action_buttons = function(container, approved_ed
key = key.value; key = key.value;
var editor = approved_editor_container.select('textarea[name*=[' + lang + ']').pop(); var editor = approved_editor_container.select('textarea[name*=[' + lang + ']').pop();
//
var raw_transcript = p.select(".queued-transcript-raw").shift(); var raw_transcript = container.select(".queued-transcript-raw").shift();
if (raw_transcript && editor) { if (raw_transcript && editor) {
var ok = true; var ok = true;
if (editor.value.match(/[^ ]/)) { if (editor.value.match(/[^ ]/)) {
@ -200,6 +200,7 @@ WhatDidTheySay.setup_transcript_action_buttons = function(container, approved_ed
var language_selector = approved_editor_container.select('select').pop(); var language_selector = approved_editor_container.select('select').pop();
if (language_selector) { if (language_selector) {
language_selector.selectedIndex = language_selector.options.length - language_selector.selectedIndex;
var i,il; var i,il;
for (i = 0, il = language_selector.options.length; i < il; ++i) { for (i = 0, il = language_selector.options.length; i < il; ++i) {
if (language_selector.options[i].value == lang) { if (language_selector.options[i].value == lang) {