I have a form where there is a table. At the bottom of this, there are buttons to manipulate the rows of the table, and only the selected ones will be affected.
StepstoReproduceProblem
jsfiddle to check the problem
result of fiddle to test in IE 8
click the box again to deselect the line
It will not work!
click again to deselect the line
Now it works!
This fiddle already has a very well isolated javascript code, it does not even have a scroll in the fiddle (in the script part, which is where I think the problem is) ... but I still could not solve the problem. p>
Question
How to make the box deselect on the first click?
Please, if you know the solution, explain to me ... do not just put code ... I would very much like to know why this is not working.
Browsers that I tested have the problem: Chrome 34, Firefox 28, IE 8
To tell you the truth, I worry a lot about solving for chrome, a little less for FF, and not for IE 8 at all ... I just mentioned IE 8 to show that the problem is consistent between browsers .
Notes:
I noticed that by removing the lines below, it works the way I want it ... almost ... There are two lines equal to this:
.bind("blur mouseout", restore)
However, this way I lose the mouse-out, which serves to clear the icon that is placed inside the orange box indicating which lines are affected, as not always a selected line can be affected by a command.