Orbit/app/assets/javascripts/translation_page.js

8 lines
303 B
JavaScript
Raw Normal View History

2011-12-05 02:36:25 +00:00
$('div a.hide').live( "click", function(){
$(this).parent().next().hide();
$(this).replaceWith("<a href='#' class='show'><%= t(:show) %></a>");
});
$('div a.show').live( "click", function(){
$(this).parent().next().show();
$(this).replaceWith("<a href='#' class='hide'><%= t(:hide) %></a>");
});