Skip to content

Commit

Permalink
hopefully fixes TracksApp#727.Changes the check on running animation …
Browse files Browse the repository at this point in the history
…to finished animation

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@874 a4c988fc-2ded-0310-b66e-134b36920a42
  • Loading branch information
lrbalt committed Jun 6, 2008
1 parent cfb69cd commit 6cb083b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracks/app/views/contexts/_context.rhtml
Expand Up @@ -5,7 +5,7 @@
<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!='running') {
if (todoItems.lastEffect == null || todoItems.lastEffect.state=='finished') {
containerElem = this.up('.container')
toggleTarget = containerElem.down('.toggle_target')
if (Element.visible(toggleTarget))
Expand Down
File renamed without changes.

0 comments on commit 6cb083b

Please sign in to comment.