so__transcript.js 468 B

1234567891011121314
  1. // Using the closure to map jQuery to $.
  2. (function ($) {
  3. // Store our function as a property of Drupal.behaviors.
  4. Drupal.behaviors.so__transcript = {
  5. attach: function (context, settings) {
  6. $(".tripal-chado-so__transcript-box").hide()
  7. $(".tripal-chado-so__transcript-select").change(function() {
  8. $(".tripal-chado-so__transcript-box").hide()
  9. $("#tripal-chado-so__transcript-" + this.value).show(600)
  10. });
  11. }
  12. }
  13. }) (jQuery);