Sha256: 3872b0f7766ac5105053770d3a57207c719f220204c8b05dda13ca54d5bae3ca

Contents?: true

Size: 862 Bytes

Versions: 44

Compression:

Stored size: 862 Bytes

Contents

{
  initComponent: function () {
    var me = this;
    me.callParent();
    var form = me.getForm();

    var window = this.netzkeGetParentComponent();
    var parent_view = window.netzkeGetParentComponent();

    this.serverConfig.parent_id = parent_view.serverConfig.parent_id ||
      parent_view.serverConfig.selected;

    var textname = form.findField('import_data');
    var importbutton = me.actions["apply"].items[0];

    importbutton.on('click', function (t, e, ops) {
      me.netzkeGetComponent('result').updateBodyHtml('');
    });
  },

  setResult: function (html) {
    var result = this.netzkeGetComponent('result');
    result.updateBodyHtml(html);

    var window = this.netzkeGetParentComponent();
    var parent_view = window.netzkeGetParentComponent();

    if (parent_view && parent_view.reload) {
      parent_view.reload()
    }
  }
}

Version data entries

44 entries across 44 versions & 1 rubygems

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