Sha256: 014c7cb9e64eba5356d448b6e59e9ad60147369a5a7c2bc1b7c8ea7470716ace

Contents?: true

Size: 604 Bytes

Versions: 22

Compression:

Stored size: 604 Bytes

Contents

Blacklight.onLoad(function () {
  $('#homeTabs a, #myTab a').click(function (e) {
    e.preventDefault();
    $(this).tab('show');
  });
  $('#homeTabs a:first, #myTab a:first').tab('show'); // Select first tab

  // Show the tabs in GenericFile#edit given an anchor
  switch (window.location.hash.substring(1)) {
    case 'versioning_display':
      $('#edit_versioning_link a').tab('show');
      break;
    case 'descriptions_display':
      $('#edit_descriptions_link a').tab('show');
      break;
    case 'permissions_display':
      $('#edit_permissions_link a').tab('show');
      break;
  }
});

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
sufia-4.0.0 app/assets/javascripts/sufia/tabs.js
sufia-4.0.0.rc2 app/assets/javascripts/sufia/tabs.js