app/assets/javascripts/lolita/translation/application.js in lolita-translation-0.5.0 vs app/assets/javascripts/lolita/translation/application.js in lolita-translation-0.6.0
- old
+ new
@@ -1,11 +1,12 @@
$(function(){
$(".tab-language-switch li").live("click",function(){
- $(".tab-language-switch li").removeClass("active")
+ $(".tab-language-switch li").removeClass("active");
$(this).addClass("active");
- var locale = $(this).data("locale")
- var tab_name = $(this).data("tab")
- $(".tab-content .language-wrap").hide(0)
+ var locale = $(this).data("locale");
+ var tab_name = $(this).data("tab");
+ var container = $(this).data("container") || ".tab-content";
+ $(container + " .language-wrap").hide(0)
$("#"+locale+"_for_"+tab_name).show(0)
resize_all_tinymce_editors()
})
})
\ No newline at end of file