summaryrefslogtreecommitdiffstats
path: root/app/views/watchers/new.js.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/watchers/new.js.erb')
-rw-r--r--app/views/watchers/new.js.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/watchers/new.js.erb b/app/views/watchers/new.js.erb
index c89dd1c95..6b99f657e 100644
--- a/app/views/watchers/new.js.erb
+++ b/app/views/watchers/new.js.erb
@@ -1,3 +1,3 @@
-Element.update('ajax-modal', '<%= escape_javascript(render :partial => 'watchers/new', :locals => {:watched => @watched}) %>');
+$('#ajax-modal').html('<%= escape_javascript(render :partial => 'watchers/new', :locals => {:watched => @watched}) %>');
showModal('ajax-modal', '400px');
-$('ajax-modal').addClassName('new-watcher');
+$('#ajax-modal').addClass('new-watcher');