[*] FO : Fix #PSCFV-7463 No Add to favorite for Chrome
This commit is contained in:
+3
-2
@@ -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) + '" />') + ' ';
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user