Author: jakehiller
Date: 2010-01-26 20:26:25 +0100 (Tue, 26 Jan 2010)
New Revision: 27209

Modified:
   plugins/pkBlogPlugin/trunk/modules/pkBlogEventAdmin/templates/_tagList.php
Log:
fixed JS error for events tag list

Modified: 
plugins/pkBlogPlugin/trunk/modules/pkBlogEventAdmin/templates/_tagList.php
===================================================================
--- plugins/pkBlogPlugin/trunk/modules/pkBlogEventAdmin/templates/_tagList.php  
2010-01-26 19:10:20 UTC (rev 27208)
+++ plugins/pkBlogPlugin/trunk/modules/pkBlogEventAdmin/templates/_tagList.php  
2010-01-26 19:26:25 UTC (rev 27209)
@@ -12,18 +12,19 @@
 
 $(document).ready(function(){
 
-       var tagList;
+       var     tagList = $('#pk_blog_event_tags').attr('value');
+       console.log(tagList);
        var recommendedTag = $('.recommended-tag');
                        
        recommendedTag.click(function(){
        
-       tagList = $('#pk_blog_post_tags').attr('value');
+       tagList = $('#pk_blog_event_tags').attr('value');
        theTag = $(this).text();
        
                if (!$(this).hasClass('selected'))
                { //Only add it if it hasn't been added already
                        tagList += ", "+theTag;
-                       $('#pk_blog_post_tags').attr('value',tagList);
+                       $('#pk_blog_event_tags').attr('value',tagList);
                }
                else
                {
@@ -36,7 +37,7 @@
                        }
 
                        newTagList.splice(tagPosition,1);
-                       
$('#pk_blog_post_tags').attr('value',newTagList.toString());
+                       
$('#pk_blog_event_tags').attr('value',newTagList.toString());
                }
                
                $(this).toggleClass('selected');

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to