
/* Widgets
----------------------------------------------------------------------------*/

$(function () {
    // Style submit buttons
    $(".submitbutton").each(function () {
        var node = $('<a href="#" class="link-button">' + $(this).val() + '</a>');
        $(this).before(node).remove();
        node.click(function () {
            $(this).parents("form").get(0).submit();
            return false;
        });
    });
    
    // Style link buttons
    $(".link-button").append('<span class="arrow"></span>');
    
    // Display error messages
    $(".fielderror").hide().show("slow");
    
    $(".confirm").click(function () {
        return confirm("Sicher?");
    });
});

