Sha256: b075f9b2be1d072e6b821019e1564bc54a68d302631624db74bdd715158dcabb

Contents?: true

Size: 468 Bytes

Versions: 9

Compression:

Stored size: 468 Bytes

Contents

{
  initComponent: function(params){
    Netzke.classes.Basepack.TabPanel.superclass.initComponent.call(this);
    this.on('tabchange', function(self, i){
      if (i && i.wrappedComponent && !i.items.first() && !i.beingLoaded) {
        i.beingLoaded = true; // prevent more than one request per tab in case of fast clicking
        this.loadNetzkeComponent({name: i.wrappedComponent, container: i.id}, function(){i.beingLoaded = false});
      }
    }, this);
  }
}

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
netzke-basepack-0.7.7 lib/netzke/basepack/tab_panel/javascripts/tab_panel.js
netzke-basepack-zh-0.7.6 lib/netzke/basepack/tab_panel/javascripts/tab_panel.js
netzke-basepack-0.7.6 lib/netzke/basepack/tab_panel/javascripts/tab_panel.js
netzke-basepack-0.7.5 lib/netzke/basepack/tab_panel/javascripts/tab_panel.js
netzke-basepack-0.7.4 lib/netzke/basepack/tab_panel/javascripts/tab_panel.js
netzke-basepack-0.7.3 lib/netzke/basepack/tab_panel/javascripts/tab_panel.js
netzke-basepack-0.7.2 lib/netzke/basepack/tab_panel/javascripts/tab_panel.js
netzke-basepack-0.7.1 lib/netzke/basepack/tab_panel/javascripts/tab_panel.js
netzke-basepack-0.7.0 lib/netzke/basepack/tab_panel/javascripts/tab_panel.js