Sha256: 6013771139ff9115a9e0da8f248ee3aa115ef7fad61a249ea732453eacb130f7

Contents?: true

Size: 1.11 KB

Versions: 44

Compression:

Stored size: 1.11 KB

Contents

{
  initComponent: function () {
    this.callParent();

    this.getSelectionModel().on('selectionchange', function (selModel) {
      this.actions.detail &&
        this.actions.detail.setDisabled(!selModel.hasSelection());
    }, this);
  },

  detail: function () {
    record_id = this.getSelectionModel().getSelection()[0].getId();
    this.server.detail({
      record_id: record_id
    });
  },

  netzkeShowDetail: function (details) {
    Ext.create('Ext.Window', {
      height: 150,
      minWidth: 250,
      autoWidth: true,
      modal: true,
      autoScroll: true,
      html: details,
      title: "Posting Details"
    }).show();
  },

  netzkeOnDelete: function () {
    var records = [];
    var me = this;
    me.getSelectionModel().selected.each(function (r) {
      records.push(r.getId());
    }, me);

    // find the root component (main application)
    var main_app = me;
    while (1) {
      var p = main_app.netzkeGetParentComponent();
      if (!p) {
        break;
      }
      main_app = p;
    }

    // assumes main_app has serverSelectPosting method
    main_app.server.selectPosting(records);
  }
}

Version data entries

44 entries across 44 versions & 1 rubygems

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