﻿function updatePlaceholder(context) {
    // the HTML output of the partial view
    var html = context.get_data();

    // the DOM element representing the placeholder
    var placeholder = context.get_updateTarget();

    // use jQuery to update the placeholder. It will execute any JavaScript statements
    $(placeholder).html(html);

    // return false to prevent the automatic update of the placeholder
    return false;
}

function setMask(context) {
    var placeholder = context.get_updateTarget();

    $(placeholder).mask("Carregando...");
}

function removeMask(context) {
    var placeholder = context.get_updateTarget();
    $(placeholder).unmask();
}
