From aea0bb68e05e57beb1690b39b4ce5da424f50a4c Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Tue, 31 Mar 2009 17:10:23 +0000 Subject: [PATCH] Fixed a corner case from [10258]; thanks, Alex. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10272 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/media/js/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', ''); } },