From b2de3b3d8d496e449ffaed7400be70603ceb7866 Mon Sep 17 00:00:00 2001
From: Sugaroverdose <n1nj4p0w3r@gmail.com>
Date: Wed, 14 Jan 2015 22:09:09 +0300
Subject: [PATCH] Force browser to redraw favorite icon

on src change
---
 apps/files/js/tagsplugin.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/files/js/tagsplugin.js b/apps/files/js/tagsplugin.js
index a6757431ff..8705afb509 100644
--- a/apps/files/js/tagsplugin.js
+++ b/apps/files/js/tagsplugin.js
@@ -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);
 	}
 
-- 
GitLab