Closed GoogleCodeExporter closed 9 years ago
You are correct that this is a bug. It only flags a row to be save when you
focus on it, and checking and unchecking does not cause focus so it won't flag.
Ill have that fixe in 1.6 coming very soon
Original comment by Seancla...@gmail.com
on 31 Mar 2011 at 2:49
Do you have a sense of the strategy you would use for this? For some reason
iterating through all the tr's and adding that class seems inefficient, but I
guess from a selector standpoint you're doing that anyway by setting everything
to :checked.
Right now my short term fix would be to add that selector / change to the
checkall/uncheck all events.
I guess in semi-related thinking, do you think ToBeSaved should only be applied
if the data has actually changed? The problem with testing it this way would
be because of having to maintain a shadow version of the table to compare to
--- which leads to the semi-obvious: Does it make sense to have a Reset button
to cancel your changes before you've hit the Save button? (You could just
reload the page, but maybe you don't want to?)
Original comment by vep....@gmail.com
on 31 Mar 2011 at 3:28
The solution was to
$(this).parents("tr").addClass("toBeSaved");
@side note
I think focus is ok, because it doesn't really hurt to send that field along
and save it. Its 1 extra set in the UPDATE call, so its really more inefficient
on the client to have to compare.
Original comment by Seancla...@gmail.com
on 10 Apr 2011 at 3:24
Original issue reported on code.google.com by
vep....@gmail.com
on 31 Mar 2011 at 2:24