function reset() {
    $.post('/reset-repo', function (data) {
        setFileTree();
        $('#editor').val('');
        sendMarkdown();
        alert(data);
    });
}
/**
 * Call request on reset repository on server.
 */
Call request on reset repository on server.
Call request on reset repository on server .
function reset() {
    $.post('/reset-repo', function (data) {
        setFileTree();
        $('#editor').val('');
        sendMarkdown();
        alert(data);
    });
}
function reset ( ) { $ . post ( '/reset-repo' , function ( data ) { setFileTree ( ) ; $ ( '#editor' ) . val ( '' ) ; sendMarkdown ( ) ; alert ( data ) ; } ) ; }
Call request on reset repository on server.
Call request on reset repository on server .