Created
May 1, 2013 16:21
-
-
Save dotandimet/5496319 to your computer and use it in GitHub Desktop.
jQuery hack to switch fargo outline item direction if it contains hebrew text.
This file contains 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
$('.concord-text') | |
.each(function(t){ | |
if ($(this).text().match(/[אבגדהוזחטיכלמנסעפצקרשת]/)) { | |
$(this).attr('dir', 'rtl'); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment