function newFile(fileName) {
    $.post("/create-file", {fileName: fileName}, function (data) {
        $.post("/list-repo-tree", function (data) {
            $('#repository').html(data)
        });
        $('#editor').val(data);
        $('#help_dialog').dialog('close');
        sendMarkdown();
    })
}
/**
 * Create new file and reload componenst on page.
 * @param fileName name of new file.
 */
Create new file and reload componenst on page.
@param fileName name of new file.
Create new file and reload componenst on page . @param fileName name of new file .
function newFile(fileName) {
    $.post("/create-file", {fileName: fileName}, function (data) {
        $.post("/list-repo-tree", function (data) {
            $('#repository').html(data)
        });
        $('#editor').val(data);
        $('#help_dialog').dialog('close');
        sendMarkdown();
    })
}
function newFile ( fileName ) { $ . post ( "/create-file" , { fileName : fileName } , function ( data ) { $ . post ( "/list-repo-tree" , function ( data ) { $ ( '#repository' ) . html ( data ) } ) ; $ ( '#editor' ) . val ( data ) ; $ ( '#help_dialog' ) . dialog ( 'close' ) ; sendMarkdown ( ) ; } ) }
Create new file and reload componenst on page.
Create new file and reload componenst on page .