Sha256: 4f13cd5b46fd44671e4ac3ef424863162e0786bbf0511bf4c03ab6a416618dc8

Contents?: true

Size: 1.04 KB

Versions: 6

Compression:

Stored size: 1.04 KB

Contents

Blacklight.onLoad(function() {
  var summaryButton = $('#summary-btn');
  var monthlyButton = $('#monthly-btn');
  var rangeButton = $('#range-btn');

  $('#monthly-btn').on('click', function() {
    $(this).addClass('btn-primary');
    $(this).removeClass('btn-default');
    summaryButton.removeClass('btn-primary');
    summaryButton.addClass('btn-default');
    rangeButton.removeClass('btn-primary');
    rangeButton.addClass('btn-default');
  });

  $('#summary-btn').on('click', function() {
    
    $(this).addClass('btn-primary');
    $(this).removeClass('btn-default');
    monthlyButton.removeClass('btn-primary');
    monthlyButton.addClass('btn-default');
    rangeButton.removeClass('btn-primary');
    rangeButton.addClass('btn-default');
  });

  $('#range-btn').on('click', function() {
    $(this).addClass('btn-primary');
    $(this).removeClass('btn-default');
    monthlyButton.removeClass('btn-primary');
    monthlyButton.addClass('btn-default');
    summaryButton.removeClass('btn-primary');
    summaryButton.addClass('btn-default');
  });
});

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/assets/javascripts/hyrax/reports-buttons.js
hyrax-3.5.0 app/assets/javascripts/hyrax/reports-buttons.js
hyrax-3.4.2 app/assets/javascripts/hyrax/reports-buttons.js
hyrax-3.4.1 app/assets/javascripts/hyrax/reports-buttons.js
hyrax-3.4.0 app/assets/javascripts/hyrax/reports-buttons.js
hyrax-3.3.0 app/assets/javascripts/hyrax/reports-buttons.js