[Bug 303471] Emoticons are changed to text but are not changed back

Daniele E. Domenichelli daniele.domenichelli at gmail.com
Tue Sep 25 10:43:40 BST 2012


https://bugs.kde.org/show_bug.cgi?id=303471

--- Comment #8 from Daniele E. Domenichelli <daniele.domenichelli at gmail.com> ---
I agree that since it's a theme problem it's not 

Anyway I investigated a little and I found out that the theme that I was using
(that is not changing at all) in Footer.html has this:

                //Swap an image with its alt-tag text on click, or
expand/unexpand an attached image
                document.onclick = imageCheck;
                function imageCheck() {         
                        node = event.target;
                        if(node.tagName == 'IMG' && !client.zoomImage(node) &&
node.alt) {
                                a = document.createElement('a');
                                a.setAttribute('onclick', 'imageSwap(this)');
                                a.setAttribute('src',
node.getAttribute('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.getAttribute('src'));
                        img.setAttribute('alt', node.firstChild.nodeValue);
                        img.className = node.className;
                        node.parentNode.replaceChild(img, node);

                        alignChat(shouldScroll);
                }

After deleting this part the emoticons switch correctly.

Should we close this as invalid, since it is a theme problem, or do we want to
handle this and find a solution?

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kde-telepathy-bugs mailing list