2 changed files with 21 additions and 20 deletions
@ -1,3 +1,24 @@ |
|||||||
(function (Drupal) { |
(function (Drupal) { |
||||||
//stuff goes here
|
//stuff goes here
|
||||||
})(Drupal); |
})(Drupal); |
||||||
|
|
||||||
|
(function ($) { |
||||||
|
|
||||||
|
Drupal.behaviors.LangSwitchBehavior = { |
||||||
|
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