Sha256: efe932906c0b53e17b1611a41fc1de7007d77a031ab66e7556d7c7536ff9f49a

Contents?: true

Size: 602 Bytes

Versions: 7

Compression:

Stored size: 602 Bytes

Contents

//= require jquery
//= require jquery_ujs
//= require jquery-ui/effect
//= require calagator/forms
//= require calagator/mapping
//= require leaflet.awesome-markers

// 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.
$(document).on('click','.expander_toggle', 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

7 entries across 7 versions & 2 rubygems

Version Path
calagator2-2.1.1 app/assets/javascripts/calagator.js
calagator2-2.1.0 app/assets/javascripts/calagator.js
calagator2-2.0.0 app/assets/javascripts/calagator.js
calagator-2.0.0.pre.1 app/assets/javascripts/calagator.js
calagator-2.0.0.pre.0 app/assets/javascripts/calagator.js
calagator-1.1.0 app/assets/javascripts/calagator.js
calagator-1.0.0 app/assets/javascripts/calagator.js