mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
first unbind click event on toggleNotes
when you update a todo, the click event was added to the updated todo, but also to all other todos. This causes a click on toggleNote to execute several toggles
This commit is contained in:
parent
c6b6bd97b9
commit
cd3f458f6e
1 changed files with 2 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ var TracksForm = {
|
||||||
|
|
||||||
var TodoBehavior = {
|
var TodoBehavior = {
|
||||||
enableToggleNotes: function() {
|
enableToggleNotes: function() {
|
||||||
jQuery(".show_notes").click(function () {
|
jQuery(".show_notes").unbind('click').bind('click', function () {
|
||||||
jQuery(this).next().toggle("fast"); return false;
|
jQuery(this).next().toggle("fast"); return false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -230,4 +230,4 @@ CookieManager.prototype =
|
||||||
aCookieName + '=;expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/';
|
aCookieName + '=;expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue