function newFileDialog() {
    var dialog = $("#help_dialog"); 
    dialog.dialog({
        autoOpen: false,
        resizable: true,
        modal: true,
        height: 300,
        width: 300,
        title: 'File name',
        buttons: [
            {
                text: 'OK',
                click: function () {
                    var textArea = $('#fileName'); 
                    if (textArea.val() != '') {
                        newFile(textArea.val());
                    }
                }
            }
        ]
    });

    var html = '<label>Write name of new file.</label></label><input id="fileName" type="text" name="repository">';
    dialog.html(html);

    dialog.dialog('open');
}
/**
 * Show dialog for creating new file
 */
Show dialog for creating new file
Show dialog for creating new file
function newFileDialog() {
    var dialog = $("#help_dialog"); 
    dialog.dialog({
        autoOpen: false,
        resizable: true,
        modal: true,
        height: 300,
        width: 300,
        title: 'File name',
        buttons: [
            {
                text: 'OK',
                click: function () {
                    var textArea = $('#fileName'); 
                    if (textArea.val() != '') {
                        newFile(textArea.val());
                    }
                }
            }
        ]
    });
    var html = '<label>Write name of new file.</label></label><input id="fileName" type="text" name="repository">';
    dialog.html(html);
    dialog.dialog('open');
}
function newFileDialog ( ) { var dialog = $ ( "#help_dialog" ) ; dialog . dialog ( { autoOpen : false , resizable : true , modal : true , height : 300 , width : 300 , title : 'File name' , buttons : [ { text : 'OK' , click : function ( ) { var textArea = $ ( '#fileName' ) ; if ( textArea . val ( ) != '' ) { newFile ( textArea . val ( ) ) ; } } } ] } ) ; var html = '<label>Write name of new file.</label></label><input id="fileName" type="text" name="repository">' ; dialog . html ( html ) ; dialog . dialog ( 'open' ) ; }
Show dialog for creating new file
Show dialog for creating new file