Sha256: da5b11310811e5cd7c1cdd658a74177c86476247ce650b48cb99052804ce7561
Contents?: true
Size: 386 Bytes
Versions: 2
Compression:
Stored size: 386 Bytes
Contents
Trestle.ready(function() { $("a[data-toggle='tab']").on('shown.bs.tab', function(e) { var hash = $(this).attr("href"); if (hash.substr(0, 1) == "#") { history.replaceState({ turbolinks: {} }, "", "#!" + hash.substr(1)); } }); if (location.hash.substr(0, 2) == "#!") { $("a[data-toggle='tab'][href='#" + location.hash.substr(2) + "']").tab("show"); } });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trestle-0.8.5 | app/assets/javascripts/trestle/_tabs.js |
trestle-0.8.4 | app/assets/javascripts/trestle/_tabs.js |