Extensions
: K-Meleon Forum
All about K-Meleon extensions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JohnHell] [quote=snuz2] Awesome. Now go into tree.htm and find the function drawFeedTree. You will see that the subscription tree is made from ordinary hyperlinks in a recursive function. You can interchange the click events on the hyperlinks to make single click open, and double click select. On about the 3rd line of the function. Let me know how (or if) it works.[/quote] Interchange has no very much sense as everytime you click... you know ;) and in the other hand, the onclick event just has a "return false" statement. But, well, yes, it works [code] . . . function drawFeedTree( s, f, indent) { if (f.nodeType == 1) { if (f.attributes.length>1) { s += '<x href="#" name="' + f.getAttribute('id') + '" \ onFocus="selectFeed(this)" onClick="handleDblClick(); return false;"'; . . . [/code] Just one thing, as 'f.nodeType' could be (I don't know what defines), I guess, the definition of the type of node, feed or folder, it would be better to add that type to avoid the click on folder cause a close of that folder. For folders might be more interesting the double click event.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development