Avoid an AJAX query if the watchers form is already loaded.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8593 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-01-09 18:46:37 +00:00
parent 1b1c510ff9
commit c23e497c42
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -5,7 +5,8 @@
:action => 'new',
:object_type => watched.class.name.underscore,
:object_id => watched},
:method => 'get' %>
:method => 'get',
:before => "if ($('ajax-modal').hasClassName('new-watcher')) {showModal('ajax-modal'); return false;}" %>
</div>
<% end %>