Force browser to redraw favorite icon on src change
This commit is contained in:
Thomas Müller 2015-01-15 11:20:22 +01:00
commit 2fbe8bbcba
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@
*/
function toggleStar($actionEl, state) {
$actionEl.find('img').attr('src', getStarImage(state));
$actionEl.hide().show(0); //force Safari to redraw element on src change
$actionEl.toggleClass('permanent', state);
}