Remove js from html
This commit is contained in:
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>");
|
||||
});
|
||||
Reference in new issue
Block a user