mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-08 08:34:21 +01:00
Todo editing and deletion working beautifully.
Removing UJS caused the home page to stop rendering due to references to apply_behavior. I had to take care of that before I could proceed at all. Some Autocomplete stuff has been yanked out and needs to go back in at some point. Had to replace Protoload with jQuery.blockUI. It's a bit bigger, but oh well.
This commit is contained in:
parent
40321668d1
commit
59b367a711
11 changed files with 497 additions and 162 deletions
|
|
@ -3,25 +3,6 @@
|
|||
<h2>
|
||||
<% if collapsible -%>
|
||||
<a href="#" class="container_toggle" id="toggle_c<%= context.id %>"><%= image_tag("collapse.png") %></a>
|
||||
<% apply_behavior '.container_toggle:click', :prevent_default => true do |page|
|
||||
page << " /* only handle the click if a previous click had finished its animation */
|
||||
if (todoItems.lastEffect == null || todoItems.lastEffect.state=='finished') {
|
||||
containerElem = this.up('.container')
|
||||
toggleTarget = containerElem.down('.toggle_target')
|
||||
if (Element.visible(toggleTarget))
|
||||
{
|
||||
todoItems.collapseNextActionListing(toggleTarget);
|
||||
$.cookie(todoItems.buildCookieName(containerElem), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
todoItems.expandNextActionListing(toggleTarget);
|
||||
$.cookie(todoItems.buildCookieName(containerElem), null);
|
||||
}
|
||||
}
|
||||
"
|
||||
end
|
||||
-%>
|
||||
<% end -%>
|
||||
<% if source_view_is :context %>
|
||||
<span class="in_place_editor_field" id="context_name_in_place_editor"><%= context.name %></span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue