Remove various Prototype uses

pull/4323/head
Oliver Günther 9 years ago
parent 96298c6208
commit 6bf0eabdd9
  1. 4
      app/views/boards/show.html.erb
  2. 2
      app/views/news/show.html.erb

@ -42,7 +42,7 @@ See doc/COPYRIGHT.rdoc for more details.
<hr class="form--separator" />
<%= styled_button_tag l(:button_create), class: '-highlight -with-icon icon-checkmark' %>
<%= preview_link preview_board_topics_path(@board), 'message-form-preview' %>
<%= link_to l(:button_cancel), '', onclick: 'Element.hide("add-message")', class: 'button' %>
<%= link_to l(:button_cancel), '', onclick: 'jQuery("#add-message").hide();', class: 'button' %>
<% end %>
<div id="preview"></div>
<% end %>
@ -53,7 +53,7 @@ See doc/COPYRIGHT.rdoc for more details.
<li class="toolbar-item">
<%= link_to({ controller: '/messages', action: 'new', board_id: @board},
class: 'button -alt-highlight',
onclick: 'Element.show("add-message"); Form.Element.focus("message_subject"); return false;') do %>
onclick: 'jQuery("#add-message").show(); jQuery("#message_subject").focus(); return false;') do %>
<i class="button--icon icon-add"></i>
<span class="button--text"><%= l(:label_message_new) %></span>
<% end %>

@ -60,7 +60,7 @@ See doc/COPYRIGHT.rdoc for more details.
<%= labelled_tabular_form_for @news, html: { id: 'news-form' } do |f| %>
<%= render partial: 'form', locals: { f: f } %>
<%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark' %>
<%= link_to l(:button_cancel), "#", onclick: 'Element.hide("edit-news"); return false;',
<%= link_to l(:button_cancel), "#", onclick: 'jQuery("#edit-news").hide(); return false;',
class: 'button'%>
<%= preview_link preview_news_path(@news), 'news-form-preview' %>
<% end %>

Loading…
Cancel
Save