From 16b6ed788a13c5fba575e4d0897c32a717965c3e Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Wed, 27 Feb 2013 22:11:26 +0100 Subject: [PATCH] workaround preventing mentions view scrolling down to first youtube video --- WebKit/scripts/helper/Core.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/WebKit/scripts/helper/Core.js b/WebKit/scripts/helper/Core.js index 8ceeeb6..59b5af7 100644 --- a/WebKit/scripts/helper/Core.js +++ b/WebKit/scripts/helper/Core.js @@ -869,10 +869,10 @@ function(jQuery, Paths, URI, HostApp, Cache) { var ms = ""; for (var i = 0; i < mentions.length; i++) { var e = mentions[i].entity.replace("https://", ""); - if(string.indexOf(e) == -1) ms += "^" + e; + if(string.indexOf(e) == -1) ms += " ^" + e; } - if(ms.length > 0) string += "\n\n/cc " + ms; + if(ms.length > 0) string += "\n\n/cc" + ms; HostApp.openNewMessageWidow(entity, status_id, string, is_private); } @@ -932,7 +932,18 @@ function(jQuery, Paths, URI, HostApp, Cache) { } Core.prototype.addYouTube = function(id, images) { - $(images).append('