﻿/* Add dynamic links to a post when the user hovers over it */
Tikal.Utils.PostActions = new function () {

    var postACommentExists = false;

    this.addPostACommentAction = function (element) {
        if (!postACommentExists) {
            var right_content = $(element).find('.right_content');

            right_content.append('<a href="#" id="postACommet" style="float: right;">Post&nbsp;a&nbsp;comment</a>');

            postACommentExists = true;
        }
    };

    this.removePostACommentAction = function (element) {
        if (postACommentExists) {
            var postACommentLink = $(element).find('#postACommet');
            postACommentLink.remove();
            postACommentExists = false;
        }

    };
};
