Fixed tagging uploaded posts in Chrome

This commit is contained in:
Marcin Kurczewski 2015-06-26 23:40:27 +02:00
parent b5d6e4837d
commit 9b2238d423

View file

@ -441,7 +441,9 @@ App.Presenters.PostUploadPresenter = function(
} }
function getTagIndex(post, tag) { 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()); return tags.indexOf(tag.toLowerCase());
} }