[*] FO : Fix #PSCFV-7463 No Add to favorite for Chrome

This commit is contained in:
gRoussac
2013-02-13 10:44:06 +01:00
parent 8effbd8c68
commit fa878720f6
+3 -2
View File
@@ -175,7 +175,7 @@ function addBookmark(url, title)
{
if (window.sidebar)
return window.sidebar.addPanel(title, url, "");
else if ( window.external )
else if ( window.external && ('AddFavorite' in window.external))
return window.external.AddFavorite( url, title);
else if (window.opera && window.print)
return true;
@@ -188,7 +188,8 @@ function writeBookmarkLink(url, title, text, img)
if (img)
insert = writeBookmarkLinkObject(url, title, '<img src="' + img + '" alt="' + escape(text) + '" title="' + escape(text) + '" />') + '&nbsp';
insert += writeBookmarkLinkObject(url, title, text);
document.write(insert);
if (window.sidebar || window.opera && window.print || (window.external && ('AddFavorite' in window.external)))
document.write(insert);
}
function writeBookmarkLinkObject(url, title, insert)