Sha256: 438f628601bd6215de8ba6aa1ed857f69a0e7f8dd255b0bb9c9dd8db5361f22f
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
window.StatsPanelToggle = (function($) { // private function switchActive(e) { var current = $(e.currentTarget).children('.cf-stat-option.active').first(); var next = current.next() if (next.length === 0) { next = current.siblings().first(); } current.removeClass('active'); next.addClass('active'); } // public return { bind: function() { $('.cf-stat-panel.-toggle').on('click', switchActive); } }; })($);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caseflow-0.1.5 | app/assets/javascripts/stats/panel_toggle.js |