diff options
author | Tobias Markmann <tm@ayena.de> | 2012-03-21 18:41:58 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-03-22 17:34:30 (GMT) |
commit | e1c34f129275d03cc9a72dabb75d2c6d621f0e01 (patch) | |
tree | 604f755fc37e8a278bda05c82ff145b772e45217 /Swift/resources/themes/Default/Template.html | |
parent | 85939c333765a4f028efa6f3037abd8de911ede8 (diff) | |
download | swift-contrib-e1c34f129275d03cc9a72dabb75d2c6d621f0e01.zip swift-contrib-e1c34f129275d03cc9a72dabb75d2c6d621f0e01.tar.bz2 |
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
Diffstat (limited to 'Swift/resources/themes/Default/Template.html')
-rwxr-xr-x | Swift/resources/themes/Default/Template.html | 27 |
1 files changed, 0 insertions, 27 deletions
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) { |