1
0
mirror of https://github.com/django/django.git synced 2024-12-24 10:05:46 +00:00

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

View File

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