Remove js from html

This commit is contained in:
chris2tof committed 2011-12-05 10:36:25 +08:00
1 parent 962bf03af2
commit 26b49dcf02
25 files changed
+101 -1206

No files matched your search

@@ -0,0 +1,8 @@
$('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>");
});