static/ext/src/ux/AceEditor.js
function CliView(cli, env) {
    cli.cliView = this;
    this.cli = cli;
    this.doc = document;
    this.win = dom.getParentWindow(this.doc);
    this.env = env;

    // TODO: we should have a better way to specify command lines???
    this.element = this.doc.getElementById('cockpitInput');
    if (!this.element) {
        // console.log('No element with an id of cockpit. Bailing on cli');
        return;
    }

    this.settings = env.settings;
    this.hintDirection = this.settings.getSetting('hintDirection');
    this.outputDirection = this.settings.getSetting('outputDirection');
    this.outputHeight = this.settings.getSetting('outputHeight');

    // If the requisition tells us something has changed, we use this to know
    // if we should ignore it
    this.isUpdating = false;

    this.createElements();
    this.update();
}
function CliView(cli, env) {
    cli.cliView = this;
    this.cli = cli;
    this.doc = document;
    this.win = dom.getParentWindow(this.doc);
    this.env = env;

    // TODO: we should have a better way to specify command lines???
    this.element = this.doc.getElementById('cockpitInput');
    if (!this.element) {
        // console.log('No element with an id of cockpit. Bailing on cli');
        return;
    }

    this.settings = env.settings;
    this.hintDirection = this.settings.getSetting('hintDirection');
    this.outputDirection = this.settings.getSetting('outputDirection');
    this.outputHeight = this.settings.getSetting('outputHeight');

    // If the requisition tells us something has changed, we use this to know
    // if we should ignore it
    this.isUpdating = false;

    this.createElements();
    this.update();
}
function CliView ( cli , env ) { cli . cliView = this ; this . cli = cli ; this . doc = document ; this . win = dom . getParentWindow ( this . doc ) ; this . env = env ; // TODO: we should have a better way to specify command lines??? this . element = this . doc . getElementById ( 'cockpitInput' ) ; if ( ! this . element ) { // console.log('No element with an id of cockpit. Bailing on cli'); return ; } this . settings = env . settings ; this . hintDirection = this . settings . getSetting ( 'hintDirection' ) ; this . outputDirection = this . settings . getSetting ( 'outputDirection' ) ; this . outputHeight = this . settings . getSetting ( 'outputHeight' ) ; // If the requisition tells us something has changed, we use this to know // if we should ignore it this . isUpdating = false ; this . createElements ( ) ; this . update ( ) ; }
A class to handle the simplest UI implementation
A class to handle the simplest UI implementation