Sha256: f3c46911bb5d8ee2bb5d9969533f151d0754666af588f0cf70566ab3fde3699e

Contents?: true

Size: 620 Bytes

Versions: 55

Compression:

Stored size: 620 Bytes

Contents

$(document).ready(function() {
  $.fn.toggleDetails = function() {
    var toggle = function() {
      $('.details').slideUp();
      $(this).parent().find('.details:hidden').slideDown();
    };

    $(this).each(function() {
      $(this).on('click', toggle);
    });
  };

  $('.toggle-details').toggleDetails();

  $.fn.toggleBlock = function() {
    var toggle = function() {
      var $this = $(this);
      $('.info').slideUp();
      $('#' + $this.data('target') + ':hidden').slideDown();
    };
    $(this).each(function() {
      $(this).on('click', toggle);
    });
  };
  $('.block .name').toggleBlock();
});

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
hackathon_manager-0.5.11 app/assets/javascripts/hackathon_manager/toggle.js
hackathon_manager-0.5.10 app/assets/javascripts/hackathon_manager/toggle.js
hackathon_manager-0.5.9 app/assets/javascripts/hackathon_manager/toggle.js
hackathon_manager-0.5.8 app/assets/javascripts/hackathon_manager/toggle.js
hackathon_manager-0.5.7 app/assets/javascripts/hackathon_manager/toggle.js
hackathon_manager-0.5.6 app/assets/javascripts/hackathon_manager/toggle.js
hackathon_manager-0.5.5 app/assets/javascripts/hackathon_manager/toggle.js
hackathon_manager-0.5.4 app/assets/javascripts/hackathon_manager/toggle.js
hackathon_manager-0.5.3 app/assets/javascripts/hackathon_manager/toggle.js
hackathon_manager-0.5.2 app/assets/javascripts/hackathon_manager/toggle.js
hackathon_manager-0.5.1 app/assets/javascripts/hackathon_manager/toggle.js
hackathon_manager-0.5.0 app/assets/javascripts/hackathon_manager/toggle.js
hackathon_manager-0.4.4 app/assets/javascripts/hackathon_manager/toggle.js
hackathon_manager-0.4.3 app/assets/javascripts/hackathon_manager/toggle.js
hackathon_manager-0.4.2 app/assets/javascripts/hackathon_manager/toggle.js