diff --git a/django/contrib/admin/media/js/actions.js b/django/contrib/admin/media/js/actions.js index a644993cbb..4f8050d844 100644 --- a/django/contrib/admin/media/js/actions.js +++ b/django/contrib/admin/media/js/actions.js @@ -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', ''); } },