mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-29 20:26:11 +01:00
Re-wrote todo-items.js and got todo uncheck working.
I also discovered that application.js was getting included twice, causing a few issues. Small fix in standard.html.erb took care of it.
This commit is contained in:
parent
cd8a01d2d4
commit
6b7e5d0eed
4 changed files with 74 additions and 174 deletions
|
|
@ -10,12 +10,12 @@
|
|||
toggleTarget = containerElem.down('.toggle_target')
|
||||
if (Element.visible(toggleTarget))
|
||||
{
|
||||
todoItems.collapseNextActionListing(this, toggleTarget);
|
||||
todoItems.collapseNextActionListing(toggleTarget);
|
||||
$.cookie(todoItems.buildCookieName(containerElem), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
todoItems.expandNextActionListing(this, toggleTarget);
|
||||
todoItems.expandNextActionListing(toggleTarget);
|
||||
$.cookie(todoItems.buildCookieName(containerElem), null);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue