Explorar el Código

Avoid updating the dom twice

Jordi Boggiano hace 12 años
padre
commit
5ba904caa9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
         };