From c6a7ff0363b3767751a30aa4b64503e4cf413521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Fri, 15 Jun 2012 11:56:05 +0300 Subject: [PATCH] Fix teaser copy function. --- app/assets/javascripts/refinery/blog/backend.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/refinery/blog/backend.js b/app/assets/javascripts/refinery/blog/backend.js index 695cdb7c..77529c59 100644 --- a/app/assets/javascripts/refinery/blog/backend.js +++ b/app/assets/javascripts/refinery/blog/backend.js @@ -53,7 +53,7 @@ $(document).ready(function(){ $('#page-tabs').tabs(); $('#copy_body_link').click(function(event) { // Find the WYMEditor that maps to the custom_teaser field - var teaserTextArea = $('#blog_post_custom_teaser')[0]; + var teaserTextArea = $('#post_custom_teaser')[0]; var teaserEditor = null; $.each(WYMeditor.INSTANCES, function(index, editor) { if (editor._element[0] == teaserTextArea) { @@ -62,7 +62,7 @@ $(document).ready(function(){ }); if (teaserEditor) { - teaserEditor.html($('#blog_post_body').attr('value')); + teaserEditor.html($('#post_body').attr('value')); } event.preventDefault();