From 9b2238d423c6043ea86a52258f2136e92480eb72 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 26 Jun 2015 23:40:27 +0200 Subject: [PATCH] Fixed tagging uploaded posts in Chrome --- public_html/js/Presenters/PostUploadPresenter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public_html/js/Presenters/PostUploadPresenter.js b/public_html/js/Presenters/PostUploadPresenter.js index 580fa870..8639cd0f 100644 --- a/public_html/js/Presenters/PostUploadPresenter.js +++ b/public_html/js/Presenters/PostUploadPresenter.js @@ -441,7 +441,9 @@ App.Presenters.PostUploadPresenter = function( } function getTagIndex(post, tag) { - var tags = jQuery.map(post.tags, String.toLowerCase); + var tags = jQuery.map(post.tags, function(tag) { + return tag.toLowerCase(); + }); return tags.indexOf(tag.toLowerCase()); }