hopefully fixes #727.Changes the check on running animation to finished animation

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@874 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lrbalt 2008-06-06 20:06:23 +00:00
parent cfb69cd4cd
commit 6cb083b31f
2 changed files with 1 additions and 1 deletions

View file

@ -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))