function commit() {
    $.post("/commit-file", {data: $('#editor').val()}, function (data) {
        alert(data);
    })
}
/**
 * Commit actual file and show information about result.
 */
Commit actual file and show information about result.
Commit actual file and show information about result .
function commit() {
    $.post("/commit-file", {data: $('#editor').val()}, function (data) {
        alert(data);
    })
}
function commit ( ) { $ . post ( "/commit-file" , { data : $ ( '#editor' ) . val ( ) } , function ( data ) { alert ( data ) ; } ) }
Commit actual file and show information about result.
Commit actual file and show information about result .