Development

Changeset 27209

You must first sign up to be able to contribute.

Changeset 27209

Show
Ignore:
Timestamp:
01/26/10 20:26:25 (3 years ago)
Author:
jakehiller
Message:

fixed JS error for events tag list

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/pkBlogPlugin/trunk/modules/pkBlogEventAdmin/templates/_tagList.php

    r24301 r27209  
    1313$(document).ready(function(){ 
    1414 
    15   var tagList; 
     15  var tagList = $('#pk_blog_event_tags').attr('value'); 
     16  console.log(tagList); 
    1617  var recommendedTag = $('.recommended-tag'); 
    1718       
    1819  recommendedTag.click(function(){ 
    1920   
    20   tagList = $('#pk_blog_post_tags').attr('value'); 
     21  tagList = $('#pk_blog_event_tags').attr('value'); 
    2122  theTag = $(this).text(); 
    2223   
     
    2425    { //Only add it if it hasn't been added already 
    2526      tagList += ", "+theTag; 
    26       $('#pk_blog_post_tags').attr('value',tagList); 
     27      $('#pk_blog_event_tags').attr('value',tagList); 
    2728    } 
    2829    else 
     
    3738 
    3839      newTagList.splice(tagPosition,1); 
    39       $('#pk_blog_post_tags').attr('value',newTagList.toString()); 
     40      $('#pk_blog_event_tags').attr('value',newTagList.toString()); 
    4041    } 
    4142