All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.butterfaces-js.butterfaces-table.js Maven / Gradle / Ivy

function refreshTable(data, tableId) {
    var status = data.status;

    var $table = $(document.getElementById(tableId));

    // console.log(data);
    // console.log("Table id: " + tableId);
    // console.log($table);

    switch (status) {
        case "begin": // Before the ajax request is sent.
            // console.log('ajax request begin');
            $table.butterDisableElements();
            break;

        case "complete": // After the ajax response is arrived.
            // console.log('ajax request complete');
            break;

        case "success": // After update of HTML DOM based on ajax response..
            // console.log('ajax request success');
            $table.butterEnableElements();
            break;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy