Skip to content

Commit

Permalink
Fix teaser copy function.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed Jun 15, 2012
1 parent b1ef311 commit c6a7ff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/refinery/blog/backend.js
Expand Up @@ -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) {
Expand All @@ -62,7 +62,7 @@ $(document).ready(function(){
});

if (teaserEditor) {
teaserEditor.html($('#blog_post_body').attr('value'));
teaserEditor.html($('#post_body').attr('value'));
}

event.preventDefault();
Expand Down

0 comments on commit c6a7ff0

Please sign in to comment.