Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Fix Version/s: None
-
Component/s: None
-
Security Level: All-users
-
Labels:
-
Web Site URL:
-
Similar issues:
PSCFI-5399Chrome Errror filePSCFI-1517Color Picker for Attributes broken in firefox 4
PSCFI-4512 switch rates brokenPSCFI-1634Color Picker for Attributes broken in firefox 4 - Second problemPSCFI-812Javascript problems in ChromePSCFI-3729Non secure https on chrome
PSCFI-5621 Chrome ajax and login issuePSCFI-962User registration not displaying States in Chrome
PSCFI-4711 new_theme Prestashop - Not assigned a function, or brokenPSCFI-869Onepage checkout vs. Chrome 11
-
Web browser:Google Chrome 6, Google Chrome 7, Google Chrome 8, Google Chrome 9, Google Chrome 10, Google Chrome 11
Description
The Bookmark button doesn't show up in the header only in Chrome, although the Contact Us and Sitemap buttons work fine. Everything works in Firefox and IE.
There was something specific in the code:
With a comment from the developer: "Chrome doesn't allow the document.write function".
However, we tried and actually, it worked.
In js/tool.js you can delete lines 143 and 144
and modify "else if" to "if" on line 145.
Final result:
function writeBookmarkLinkObject(url, title, insert) { if (window.sidebar || window.external) return ('<a href="javascript:addBookmark(\'' + escape(url) + '\', \'' + escape(title) + '\')">' + insert + '</a>'); else if (window.opera && window.print) return ('<a rel="sidebar" href="' + escape(url) + '" title="' + escape(title) + '">' + insert + '</a>'); return (''); }Thanks for your feedback.
function writeBookmarkLinkObject(url, title, insert) { if (window.sidebar || window.external) return ('<a href="javascript:addBookmark(\'' + escape(url) + '\', \'' + escape(title) + '\')">' + insert + '</a>'); else if (window.opera && window.print) return ('<a rel="sidebar" href="' + escape(url) + '" title="' + escape(title) + '">' + insert + '</a>'); return (''); }