Fixed a corner case from [10258]; thanks, Alex.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2009-03-31 17:10:23 +00:00
parent cc5477df89
commit aea0bb68e0
1 changed files with 2 additions and 2 deletions

View File

@ -19,9 +19,9 @@ var Actions = {
}); });
}, },
toggleRow: function(tr, checked) { toggleRow: function(tr, checked) {
if (checked) { if (checked && tr.className.indexOf('selected') == -1) {
tr.className += ' selected'; tr.className += ' selected';
} else { } else if (!checked) {
tr.className = tr.className.replace(' selected', ''); tr.className = tr.className.replace(' selected', '');
} }
}, },