If a dir is empty, click on it cause browser open a .../undefined url.
Can you give more infos?
li.navTreeItem a.contenttype-folder span
As selector. Because I want toggle when click on the span(folder name text), and click on the space of the <a>, it act as a normal link to open the dir.:)
This can't work. navigation toggle is done to works with A elements only. Sorry!
...however it's better to do not generate such /undefined URLs.
Now free query selecter are not forced to match an <A> element. This …
...why not? :)
Implemented as in your original description!