Skip to content

Commit

Permalink
DONE
Browse files Browse the repository at this point in the history
・追加時の乱れを直す

TODO
・ドラッグ時の状態不一致を修正する
・recieve 時に再描画してリストの見た目を維持する
・Todo以外も対応
  • Loading branch information
volpe28v committed Oct 20, 2013
1 parent 25001e0 commit 5eacabb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/todo_smart_phone_iphone.js
Expand Up @@ -350,8 +350,8 @@ function addTodoAjax(msg) {
}

function addTodoResponse(add_task_info){
$("#todo_m").after(add_task_info.li_html);
$('#todo_ul').listview('refresh');
$("#todo_m_label").after(add_task_info.li_html);
$('#todo_m').listview('refresh');
markTodayEditById( add_task_info.id );
}

Expand Down
6 changes: 3 additions & 3 deletions app/views/tasks/index_smart_phone_iphone.html.erb
Expand Up @@ -10,19 +10,19 @@
</select>

<ul data-role="listview" id="todo_h" data-inset="true" class="sortable">
<span id="todo_label" class="cancel">High</span>
<span id="todo_h_label" class="cancel">High</span>
<% @tasks[:todo_high_tasks].each do |t| %>
<%= render "task_smart_phone_iphone", {:task => t} %>
<% end %>
</ul>
<ul data-role="listview" id="todo_m" data-inset="true" class="sortable">
<span id="todo_label" class="cancel">Middle</span>
<span id="todo_m_label" class="cancel">Middle</span>
<% @tasks[:todo_mid_tasks].each do |t| %>
<%= render "task_smart_phone_iphone", {:task => t} %>
<% end %>
</ul>
<ul data-role="listview" id="todo_l" data-inset="true" class="sortable">
<span id="todo_label" class="cancel">Low</span>
<span id="todo_l_label" class="cancel">Low</span>
<% @tasks[:todo_low_tasks].each do |t| %>
<%= render "task_smart_phone_iphone", {:task => t} %>
<% end %>
Expand Down

0 comments on commit 5eacabb

Please sign in to comment.