diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-22 13:29:26 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-22 13:29:26 +0000 |
commit | 6a2ca5e0342751b6d38a1a05ad25b5c0002d6e46 (patch) | |
tree | af09ea2d29ce61690b656be91fbf82a3009ea1ed /app/views/boards | |
parent | 387836f8aa736eba4dfe0da879ad71bbc19dd224 (diff) | |
download | redmine-6a2ca5e0342751b6d38a1a05ad25b5c0002d6e46.tar.gz redmine-6a2ca5e0342751b6d38a1a05ad25b5c0002d6e46.zip |
JQuery in, Prototype/Scriptaculous out (#11445).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10068 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/boards')
-rw-r--r-- | app/views/boards/show.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/boards/show.html.erb b/app/views/boards/show.html.erb index 3d31014d7..e61d5b68a 100644 --- a/app/views/boards/show.html.erb +++ b/app/views/boards/show.html.erb @@ -4,7 +4,7 @@ <%= link_to_if_authorized l(:label_message_new), {:controller => 'messages', :action => 'new', :board_id => @board}, :class => 'icon icon-add', - :onclick => 'Element.show("add-message"); Form.Element.focus("message_subject"); return false;' %> + :onclick => 'showAndScrollTo("add-message", "message_subject"); return false;' %> <%= watcher_tag(@board, User.current) %> </div> @@ -15,7 +15,7 @@ <%= render :partial => 'messages/form', :locals => {:f => f} %> <p><%= submit_tag l(:button_create) %> <%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form') %> | - <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-message")' %></p> + <%= link_to l(:button_cancel), "#", :onclick => '$("#add-message").hide(); return false;' %></p> <% end %> <div id="preview" class="wiki"></div> <% end %> |