bigdir/app/views/watchers/_set_watcher.js.erb

3 lines
160 B
Plaintext

<% selector = ".#{watcher_css(watched)}" %>
$("<%= selector %>").each(function(){$(this).replaceWith("<%= escape_javascript watcher_link(watched, user) %>")});