Sha256: 294d3336e1abd9e93eaceab8e24a54c90e052204beca5d7053e4fac29fd4ba06

Contents?: true

Size: 968 Bytes

Versions: 44

Compression:

Stored size: 968 Bytes

Contents

{
  setActionModes: function (a) {
    this.actions.apply.setDisabled(!a["save"]);
    // style input field text based on whether it is editable
    this.getForm().findField('body').editor.setOption(
      "readOnly", !a["save"]);
  },

  getScriptId: function () {
    return this.getForm().findField('id').getValue();
  },

  setLineError: function (idx) {

    idx -= 1;
    var editor = this.getForm().findField('body').editor;

    if (idx > -1) {
      var line = editor.getLine(idx)
      editor.markText({
        line: idx,
        ch: 0
      }, {
        line: idx,
        ch: line.length
      }, {
        className: "errorline"
      });
    }
    editor.refresh();
  },

  refreshParent: function (script_name) {
    this.netzkeGetParentComponent().scriptRefresh(script_name);
  },

  netzkeOnDoPrint: function (params) {
    this.server.doPrint(this.getScriptId());
  },

  getReport: function (report_path) {
    window.location = report_path;
  }
}

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
marty-8.5.0 app/components/marty/script_form/client/script_form.js
marty-8.4.1 app/components/marty/script_form/client/script_form.js
marty-8.3.1 app/components/marty/script_form/client/script_form.js
marty-8.2.0 app/components/marty/script_form/client/script_form.js
marty-8.0.0 app/components/marty/script_form/client/script_form.js
marty-6.1.0 app/components/marty/script_form/client/script_form.js
marty-5.2.0 app/components/marty/script_form/client/script_form.js
marty-5.1.4 app/components/marty/script_form/client/script_form.js
marty-5.1.3 app/components/marty/script_form/client/script_form.js
marty-5.1.2 app/components/marty/script_form/client/script_form.js
marty-5.1.1 app/components/marty/script_form/client/script_form.js
marty-5.1.0 app/components/marty/script_form/client/script_form.js
marty-3.1.0 app/components/marty/script_form/client/script_form.js
marty-3.0.1 app/components/marty/script_form/client/script_form.js
marty-4.0.0.rc2 app/components/marty/script_form/client/script_form.js
marty-3.0.0 app/components/marty/script_form/client/script_form.js
marty-2.9.3 app/components/marty/script_form/client/script_form.js
marty-2.9.2 app/components/marty/script_form/client/script_form.js
marty-2.9.1 app/components/marty/script_form/client/script_form.js
marty-2.8.0 app/components/marty/script_form/client/script_form.js