Sha256: 2d1a9e4ce8463bc268c66ce6823b335853cb7f0012d14676edc799c637563d88

Contents?: true

Size: 1.57 KB

Versions: 44

Compression:

Stored size: 1.57 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 script_form = me.netzkeGetComponent('script_form');

    tag_grid.getSelectionModel().on('selectionchange',
      function (self, records) {

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

        var tag_id = records[0].get('id');
        me.server.selectTag({
          tag_id: tag_id
        });
        script_grid.getStore().load();
        var script_name = null;
        script_form.server.netzkeLoad({
          script_name: script_name
        });
      }, 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
        });
        script_form.server.netzkeLoad({
          script_name: script_name
        });
      }, me);
  },

  scriptRefresh: function (script_name) {
    if (!script_name) {
      this.server.selectScript({});
      this.netzkeReload();
    } else {
      this.server.selectScript({
        script_name: script_name
      });
      this.netzkeGetComponent('tag_grid').getStore().load();
      this.netzkeGetComponent('script_grid').getStore().load();
      this.netzkeGetComponent('script_form').server.netzkeLoad({
        script_name: script_name
      });
    }
  },

}

Version data entries

44 entries across 44 versions & 1 rubygems

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