Sha256: e3cdc0d9f09fd7956c1d52ad9dc7d3bce0af9dcdccbc758905122e420104da5f
Contents?: true
Size: 605 Bytes
Versions: 2
Compression:
Stored size: 605 Bytes
Contents
//= require jquery //= require jquery_ujs //= require calagator/forms //= require leaflet.awesome-markers //= require mustache $(document).ready(function(){ // Shows hidden section when a link is clicked, and hides the link. // // The link must have a DOM id that corresponds to the section to display, // e.g. a "foo_toggle" link relates to the "foo" section. $(".expander_toggle").click(function(event) { var id_to_hide = event.target.id; var id_to_show = id_to_hide.replace(/_toggle$/, ""); $("#"+id_to_hide).hide(200); $("#"+id_to_show).show(200); $e = event; }); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
calagator-1.0.0.rc2 | app/assets/javascripts/calagator.js |
calagator-1.0.0.rc1 | app/assets/javascripts/calagator.js |