From 2ec35693da8d1f5651782a5426ba246110b67cc7 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 1 Oct 2009 23:18:29 -0400 Subject: [PATCH] another bug fixed --- js/edit-transcripts.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/edit-transcripts.js b/js/edit-transcripts.js index 291d557..89df6e8 100644 --- a/js/edit-transcripts.js +++ b/js/edit-transcripts.js @@ -260,7 +260,7 @@ WhatDidTheySay.setup_transcript_action_buttons = function(container, approved_ed function(e) { Event.stop(e); - var transcript = container.select('.transcript').pop(); + var transcript = container.select('.wdts-transcript').pop(); var editor = new Element("div", { className: 'wdts-transcript-editor' }); var button_holder = new Element("div", { className: 'wdts-button-holder' }); @@ -278,6 +278,7 @@ WhatDidTheySay.setup_transcript_action_buttons = function(container, approved_ed var post_id = container.select("input[name*=[post_id]]").shift(); var key = container.select("input[name*=[key]]").shift(); + top.console.log("made it"); var submitter = new Element('button').update('Update Transcript'); submitter.observe('click', function(e) { Event.stop(e); @@ -302,7 +303,10 @@ WhatDidTheySay.setup_transcript_action_buttons = function(container, approved_ed } }); + top.console.log(actions_holder); + container.appendChild(submitter); + actions_holder.parentNode.removeChild(actions_holder); } ]