From e1c34f129275d03cc9a72dabb75d2c6d621f0e01 Mon Sep 17 00:00:00 2001
From: Tobias Markmann <tm@ayena.de>
Date: Wed, 21 Mar 2012 19:41:58 +0100
Subject: Remove imageSwap() code from default theme. Should fix "Clicking
 message receipts warning icon replaces it with text."-bug.

License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php

diff --git a/Swift/resources/themes/Default/Template.html b/Swift/resources/themes/Default/Template.html
index 85fa10f..e94701a 100755
--- a/Swift/resources/themes/Default/Template.html
+++ b/Swift/resources/themes/Default/Template.html
@@ -303,33 +303,6 @@
 			head.appendChild( documentFragment );
 		}
 		
-		//Swap an image with its alt-tag text on click
-		document.onclick = imageCheck;
-		function imageCheck() {		
-			node = event.target;
-			if(node.tagName == 'IMG' && node.alt && node.className!="avatar") {
-				a = document.createElement('a');
-				a.setAttribute('onclick', 'imageSwap(this)');
-				a.setAttribute('src', node.src);
-				a.className = node.className;
-				text = document.createTextNode(node.alt);
-				a.appendChild(text);
-				node.parentNode.replaceChild(a, node);
-			}
-		}
-		function imageSwap(node) {
-			shouldScroll = nearBottom();
-
-			//Swap the image/text
-			img = document.createElement('img');
-			img.setAttribute('src', node.src);
-			img.className = node.className;
-			img.setAttribute('alt', node.firstChild.nodeValue);
-			node.parentNode.replaceChild(img, node);
-			
-			alignChat(shouldScroll);
-		}
-		
 		//Align our chat to the bottom of the window.  If true is passed, view will also be scrolled down
 		function alignChat(shouldScroll) {
 
-- 
cgit v0.10.2-6-g49f6