3 changed files with 25 additions and 20 deletions
@ -0,0 +1,23 @@
|
||||
(function (Drupal) { |
||||
//stuff goes here
|
||||
})(Drupal); |
||||
(function ($) { |
||||
|
||||
Drupal.behaviors.ethnographyBehavior = { |
||||
attach: function (context, settings) { |
||||
$("#text-fr").hide(); |
||||
|
||||
$( "#show-text-en" , context).click(function(e) { |
||||
e.preventDefault(); |
||||
$("#text-en").show(); |
||||
$("#text-fr").hide(); |
||||
}); |
||||
$( "#show-text-fr" , context).click(function(e) { |
||||
e.preventDefault(); |
||||
$("#text-en").hide(); |
||||
$("#text-fr").show(); |
||||
}); |
||||
} |
||||
}; |
||||
|
||||
}(jQuery)); |
||||
Loading…
Reference in new issue