Sha256: 08d5e9059266e7385768474e7df321613cae7d613877e1272f12f16a96a7a59f
Contents?: true
Size: 480 Bytes
Versions: 28
Compression:
Stored size: 480 Bytes
Contents
$(function() { var makeActive = function ($el) { $el.addClass('active').siblings().removeClass('active'); } var showTab = function ($el) { target = $($el.data().target); makeActive($el); makeActive(target); } $('.tabs .tab-anchor').click(function (e) { // don't do anything if the click was in an input if (e.target.tagName === "INPUT") { e.stopPropagation(); } else { e.preventDefault(); showTab($(this)); } }); });
Version data entries
28 entries across 28 versions & 1 rubygems