Sha256: d8fb4f644de3f8f71dff2d13d7e426b8c382579ca037f2f0431f467aba43e556

Contents?: true

Size: 1.26 KB

Versions: 44

Compression:

Stored size: 1.26 KB

Contents

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

    var tag_grid = me.netzkeGetComponent('tag_grid').getView();
    var script_grid = me.netzkeGetComponent('script_grid').getView();
    var nodename = me.getForm().findField('nodename');

    nodename.on('select', function (self, record) {
      if (record instanceof Array) {
        record = record[0]
      }
      var data = record && record.data;
      me.server.selectNode({
        node: data.value
      });
    });

    tag_grid.getSelectionModel().on('selectionchange',
      function (self, records) {
        var tag_id = records[0].get('id');
        me.server.selectTag({
          tag_id: tag_id
        });
        script_grid.getStore().load();
      }, me);

    script_grid.getSelectionModel().on('selectionchange',
      function (self, records) {
        if (script_grid.getStore().isLoading() == true) return;

        if (records[0] == null)
          return;

        var script_name = records[0].get('name');
        me.server.selectScript({
          script_name: script_name
        });
        nodename.reset();
        nodename.store.load({
          params: {}
        });
      }, me);
  },

  parentSelectReport: function () {
    this.netzkeGetParentComponent().selectReport();
  }
}

Version data entries

44 entries across 44 versions & 1 rubygems

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