aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2012-06-15 11:56:05 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2012-06-15 11:56:05 +0300
commitc6a7ff0363b3767751a30aa4b64503e4cf413521 (patch)
tree19117ea88f7d8cf0c7a79935b06ef45b9a8f5eb2 /app/assets
parentb1ef3113bfdb48f642ee4185d1d64c02970d6bec (diff)
downloadrefinerycms-blog-c6a7ff0363b3767751a30aa4b64503e4cf413521.tar.gz
refinerycms-blog-c6a7ff0363b3767751a30aa4b64503e4cf413521.tar.bz2
refinerycms-blog-c6a7ff0363b3767751a30aa4b64503e4cf413521.zip
Fix teaser copy function.
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/refinery/blog/backend.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/refinery/blog/backend.js b/app/assets/javascripts/refinery/blog/backend.js
index 695cdb7..77529c5 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();