Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit aea0bb68e05e57beb1690b39b4ce5da424f50a4c 1 parent cc5477d
Jacob Kaplan-Moss authored March 31, 2009

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/contrib/admin/media/js/actions.js
4  django/contrib/admin/media/js/actions.js
@@ -19,9 +19,9 @@ var Actions = {
19 19
         });
20 20
     },
21 21
     toggleRow: function(tr, checked) {
22  
-        if (checked) {
  22
+        if (checked && tr.className.indexOf('selected') == -1) {
23 23
             tr.className += ' selected';
24  
-        } else {
  24
+        } else if (!checked) {
25 25
             tr.className = tr.className.replace(' selected', '');
26 26
         }  
27 27
     },

0 notes on commit aea0bb6

Please sign in to comment.
Something went wrong with that request. Please try again.