Browse Source

Work around firefox radio button event bug

spaghetti 8 years ago
parent
commit
d929084764
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      static/functions/cssgallery.js

+ 1
- 1
static/functions/cssgallery.js View File

7
     radiobutton.parent().parent().addClass('selected');
7
     radiobutton.parent().parent().addClass('selected');
8
   }
8
   }
9
   // If the input is clicked, redirect it to the overlay click event
9
   // If the input is clicked, redirect it to the overlay click event
10
-  $('input[name="stylesheet_gallery"]').change(function() {
10
+  $('input[name="stylesheet_gallery"]').click(function() {
11
     $('.preview_wrapper').removeClass('selected');
11
     $('.preview_wrapper').removeClass('selected');
12
     var parent = $(this).parent();
12
     var parent = $(this).parent();
13
     parent.addClass('selected');
13
     parent.addClass('selected');

Loading…
Cancel
Save