Last active
August 29, 2015 14:12
-
-
Save imsamthomas/86208600d887db245778 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //File: /app/code/core/Mage/Core/Model/Translate/Inline.php:273 | |
| //Add follow this block | |
| new TranslateInline('translate-inline-trig', '<?php echo $ajaxUrl ?>', '<?php | |
| echo Mage::getDesign()->getArea() ?>'); | |
| if(Object.__defineGetter__) | |
| { | |
| var hasTranslateAttribute = function(){ | |
| return $(this).hasAttribute("translate"); | |
| }; | |
| document.observe("dom:loaded", function() { | |
| $$('*').each(function(theElement){ | |
| theElement.__defineGetter__("translate", hasTranslateAttribute); | |
| }); | |
| }); | |
| } | |
| //Visit https://magegiant.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment