diff --git a/classes/WhatDidTheySayAdmin.inc b/classes/WhatDidTheySayAdmin.inc index 72e6f11..099e1f5 100644 --- a/classes/WhatDidTheySayAdmin.inc +++ b/classes/WhatDidTheySayAdmin.inc @@ -260,7 +260,7 @@ class WhatDidTheySayAdmin { */ function the_transcript_opener($content = '') { ob_start(); ?> -
[ + diff --git a/js/edit-transcripts.js b/js/edit-transcripts.js index 9a4fde9..75b18a9 100644 --- a/js/edit-transcripts.js +++ b/js/edit-transcripts.js @@ -47,7 +47,7 @@ WhatDidTheySay.setup_transcript_editor = function(container) { stored_range.moveToElementText(transcript); stored_range.setEndPoint('EndToEnd', range); transcript.selectionStart = stored_range.text.length - range.text.length; - transcript.selectionEnd = current_transcript.selectionStart + range.text.length; + transcript.selectionEnd = transcript.selectionStart + range.text.length; } var start = transcript.selectionStart; @@ -63,7 +63,7 @@ WhatDidTheySay.setup_transcript_editor = function(container) { case 'scene-action': var message = tag.replace('-', '_'); if (new_content) { - var content = prompt(WhatDidTheySay.messages[message]); + var content = prompt(WhatDidTheySay.messages[message], ''); if (content) { injector.inject('[' + tag + ']' + content + "[/" + tag + "]\n", start); } @@ -73,15 +73,15 @@ WhatDidTheySay.setup_transcript_editor = function(container) { } break; case 'dialog': - var name = prompt(WhatDidTheySay.messages.dialog_name); + var name = prompt(WhatDidTheySay.messages.dialog_name, ''); if (name) { - var direction = prompt(WhatDidTheySay.messages.dialog_direction); + var direction = prompt(WhatDidTheySay.messages.dialog_direction, ''); var tag = '[dialog name="' + name + '"'; if (direction) { tag += ' direction="' + direction + '"'; } tag += ']'; if (new_content) { - var speech = prompt(WhatDidTheySay.messages.dialog_speech); + var speech = prompt(WhatDidTheySay.messages.dialog_speech, ''); if (speech) { tag += speech + "[/dialog]\n"; diff --git a/js/toggle-transcript.js b/js/toggle-transcript.js index fde0526..47f3bdd 100644 --- a/js/toggle-transcript.js +++ b/js/toggle-transcript.js @@ -105,5 +105,7 @@ $$('.wdts-transcript-container').each(function(d) { } else { bundle.show(); closer.show(); opener.hide(); } + + opener_container.show(); } }); diff --git a/what-did-they-say.php b/what-did-they-say.php index 726943e..5befb2b 100644 --- a/what-did-they-say.php +++ b/what-did-they-say.php @@ -210,12 +210,18 @@ function the_media_transcript_queue_editor() { $new_transcript_id = md5(rand()); ?> -

[ ]

+
+ [ ] +
+