Skip to content

Linked to a /undefined url if the folder is empty #4

Closed
yangh opened this Issue Jan 11, 2013 · 6 comments

2 participants

@yangh
yangh commented Jan 11, 2013

If a dir is empty, click on it cause browser open a .../undefined url.

@keul
keul commented Jan 11, 2013

Cannot reproduce.

I created an empty folder and a rule for expanding/collapsing the folder. I get now JavaScript error and I'm moved to the target folder using JavaScript (as must be).

Can you give more infos?

@yangh
yangh commented Jan 11, 2013

I use

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.:)

@keul
keul commented Jan 11, 2013

This can't work. navigation toggle is done to works with A elements only. Sorry!

@keul keul closed this Jan 11, 2013
@keul
keul commented Jan 14, 2013

...however it's better to do not generate such /undefined URLs.

@keul keul reopened this Jan 14, 2013
@keul keul closed this in a835115 Jan 14, 2013
@keul
keul commented Jan 14, 2013

...why not? :)

Implemented as in your original description!

@yangh
yangh commented Jan 14, 2013

cool! thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.