Merge pull request #13370 from Sugaroverdose/fix_#13322
Force browser to redraw favorite icon on src change
This commit is contained in:
commit
2fbe8bbcba
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue