Permalink
Browse files

Fixed related tag search in IE9.

  • Loading branch information...
1 parent b719ab2 commit b78af0613ec23d33946fb3222022cc48afff9318 @nanaya committed Nov 12, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/assets/javascripts/moe-legacy/related_tags.js
View
4 lib/assets/javascripts/moe-legacy/related_tags.js
@@ -83,6 +83,10 @@ RelatedTags = {
$("related").update("<em>Fetching...</em>")
var field = $(field)
var tags = null
+ // .textLength is empty in IE9.
+ if (field.textLength == null) {
+ field.textLength = jQuery(field).val().length;
+ };
if (field.selectionStart != field.textLength) {
var a = field.selectionStart

0 comments on commit b78af06

Please sign in to comment.