Sha256: a36588f8048267f339550534bd9982f7151379754e70dcc3b32688c4bea280e5

Contents?: true

Size: 345 Bytes

Versions: 3

Compression:

Stored size: 345 Bytes

Contents

$(function(){
  $(".tab-language-switch li").click(function(){
    $(".tab-language-switch li").removeClass("active")
    $(this).addClass("active");
    var locale = $(this).attr("data-locale")
    var tab_name = $(this).attr("data-tab")
    $(".tab-content .language-wrap").hide(0)
    $("#"+locale+"_attributes_for_"+tab_name).show(0)
  })
})

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lolita-translation-0.1.2 public/javascripts/lolita/translation.js
lolita-translation-0.1.1 public/javascripts/lolita/translation.js
lolita-translation-0.1.0 public/javascripts/lolita/translation.js