mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-29 13:28:49 +01:00
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:
parent
cfb69cd4cd
commit
6cb083b31f
2 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue