Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I've added that code in to - code/core/Mage/Core/Model/Translate/Inline.php (I understand the 'never edit core' rule. This is purely for testing purposes for now.
- But I'm now getting "Uncaught TypeError: Cannot read property 'observe' of null " from Chrome dev tools upon page load.
- I did add a fix in to the same place you've asked me to modify a few days ago so the translation popup appears in Chrome, so I'm unsure if this affects the code that you have supplied. This is the other code I added:
- if(Object.defineGetter)
- {
- var hasTranslateAttribute = function(){
- return $(this).hasAttribute("translate");
- };
- document.observe("dom:loaded", function() {
- $$('*').each(function(theElement){
- theElement.defineGetter("translate", hasTranslateAttribute);
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement