From 675f92534bfe5ef97180e46183902dd105255789 Mon Sep 17 00:00:00 2001 From: Samuel Reis Date: Tue, 21 Sep 2010 15:31:41 +0200 Subject: [PATCH] prevent dragging of user images --- TwittiaCore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TwittiaCore.js b/TwittiaCore.js index f269134..7ffb652 100644 --- a/TwittiaCore.js +++ b/TwittiaCore.js @@ -118,7 +118,8 @@ Twittia.prototype.getTemplate = function() { var image = document.createElement("img"); image.className = "image"; - item.appendChild(image); + image.onmousedown = function(e) { e.preventDefault(); }; + item.appendChild(image); var image_username = a.cloneNode(); image.appendChild(image_username);