Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Gregory 404 posts 1568 karma points MVP 3x admin c-trib
    Dec 21, 2010 @ 04:38
    Peter Gregory
    1

    Removing a tag and saving and publishing does not remove tag.

    Hi I found a bug today with autotag that is easy to fix.  This exists in version 2.0.1

    If you open a document and remove a tag (tag removed) and then hit save and publish the tag is there again when the page comes back from postback.

    I traced the error to the remove method in the javascript that is run when you click on the X on the tag.

        $('div.tags ul li span').live('click', function () {
    $(this).parent().fadeOut(300, function () { $(this).remove(); });
    serialiseTags();
    });

    The problem with it is that the tags get serialised again while the remove is still animating so the tag is still in the tag list in the background.

    To fix this all you need to do is move the serialiseTags(); call into the callback function of the click.

        $('div.tags ul li span').live('click', function () {
    $(this).parent().fadeOut(300, function () { $(this).remove(); serialiseTags();});
    });

    Hope that helps anyone with the same issues.

    Peter

  • elspiko 133 posts 302 karma points
    Dec 21, 2010 @ 10:40
    elspiko
    0

    Thanks for this Peter. I'll get it into a release as soon as possible

Please Sign in or register to post replies

Write your reply to:

Draft