﻿/// <reference path="jquery-1.3.2-vsdoc.js" />

function addTag(form) {
    $.post(form.action, { name: $('#widget-tag').val() }, function(data) {
        $('#widget-tag').val('');
        $('#widget-tag-list');
    });
}

function deleteTag(a) {
    $.post(a.href, {}, function() {
        $(a).parent().parent().empty();
    });
}

function addBookmark(url, comment) {
    $.post(url, { comment: comment }, function(data) {
    });
}

function editBookmark(id, comment) {
}

function deleteBookmark(url, id) {
    $.post(url, {}, function() {
        $('#bookmark-' + id).empty();
    });
}