Sha256: ecd751ec3d5c78997fa9f851a6aa95d9722190972381237dfa1cd079e0c38c7b

Contents?: true

Size: 646 Bytes

Versions: 5

Compression:

Stored size: 646 Bytes

Contents

jQuery(document).ready(function(){
  //init the tabulation only if there's some tabs
  if(jQuery("#page").children('ul')[0]!=undefined){
    jQuery("#page").tabs({
      select: function(event, ui) {
        var url = jQuery.data(ui.tab, 'load.tabs');
        if( url ) {
            location.href = url;
            return false;
        }
        return true;
      }
    });
  }

  //tabs for dashboard
  jQuery(".to-tab").tabs({
    ui: { theme_path: '/assets/forgeos/jquery-ui/themes/', theme_name : 'dashboard'}
  });
  jQuery("#to-tab").tabs({
    ui: { theme_path: '/assets/forgeos/jquery-ui/themes/', theme_name : 'dashboard'}
  });
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
forgeos_core-1.9.5.rc2 app/assets/javascripts/forgeos/admin/inits/forgeos_core/tabs.js
forgeos_core-1.9.5.rc1 app/assets/javascripts/forgeos/admin/inits/forgeos_core/tabs.js
forgeos_core-1.9.4 app/assets/javascripts/forgeos/admin/inits/forgeos_core/tabs.js
forgeos_core-1.9.3 app/assets/javascripts/forgeos/admin/inits/forgeos_core/tabs.js
forgeos_core-1.9.2 app/assets/javascripts/forgeos/admin/inits/forgeos_core/tabs.js