Browse Source

Avoid updating the dom twice

Jordi Boggiano 12 years ago
parent
commit
5ba904caa9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Packagist/WebBundle/Resources/public/js/view.js

+ 1 - 1
src/Packagist/WebBundle/Resources/public/js/view.js

@@ -42,7 +42,7 @@
             dataType: 'json',
             cache: false,
             success: function (data) {
-                $(this).toggleClass('icon-star').toggleClass('icon-star-empty');
+                $(this).toggleClass('icon-star icon-star-empty');
             },
             context: this
         };