get login, mobile and notes features passing

This commit is contained in:
Reinier Balt 2012-05-12 13:37:36 +02:00
parent 7c935652fb
commit 005723cb4f
52 changed files with 167 additions and 196 deletions

View file

@ -7,7 +7,7 @@
<%= render :partial => "notes/note_details", :object => note %>
</div>
<div id="<%= dom_id(note, 'edit') %>" class="note-edit-form" style="display:none;">
<div id="<%= dom_id(note, 'edit') %>" class="note-edit-form" style="display:none">
<%= render :partial => "notes/note_edit_form", :object => note %>
</div>

View file

@ -1,4 +1,3 @@
<% note = mobile_notes -%>
<div class="mobile_note">
<%= sanitize(textilize_without_paragraph(note.body)) %>
</div>

View file

@ -1,11 +1,11 @@
<%
submit_text ||= t('common.update')
note = note_edit_form
-%><%=
form_for(note, :html => {
:id => dom_id(note, 'edit_form'),
:class => "inline-form edit-note-form"}) do |f|
-%>
-%>
<div id="error_status"><%= get_list_of_error_messages_for(note) %></div>

View file

@ -1,3 +1,3 @@
<% note = mobile_notes_summary -%>
<% note = notes_summary -%>
<div class="note"><%= link_to( truncated_note(note), note_path(note, :format => 'm')) %></div>
<% note = nil -%>

View file

@ -1 +0,0 @@
<%= render :partial => 'mobile_notes', :object => @note %>

View file

@ -0,0 +1 @@
<%= render :partial => @note %>

View file

@ -17,7 +17,7 @@ function replace_note_form_with_updated_note() {
}
function html_for_error_messages() {
return "<%= escape_javascript(error_messages_for('note')) %>";
return "<%= escape_javascript(get_list_of_error_messages_for(@note)) %>";
}
function html_for_updated_note_form(){