cos-archives / hgrid

[UNMAINTAINED] A Javascript-based hierarchical grid that can be used to manage and organize file/folder-like data
Apache License 2.0
23 stars 14 forks source link

Refreshing folder sometimes causes folder to disappear #66

Closed brianjgeiger closed 10 years ago

brianjgeiger commented 10 years ago

Using reloadFolder() on a leaf folder causes the folder to disappear from the hgrid, even if reloading would have made it into a non-leaf folder. Attached is a gif of reloading a branch folder, then a leaf folder, and reloading the page to show that the leaf folder should still be in the structure.

The error is "Invalid or non-matching id" on line 3585 of hgrid.js.

refreshing leaf folder hgrid

brianjgeiger commented 10 years ago

It appears that the problem is that reloading the folder refreshes the children of the folder, not the folder itself. I was about to log another bug where, for example, if I rename the folder and reload it, the new name would not appear. However, as both that and this seem to be the same issue, I'll just put it here.

brianjgeiger commented 10 years ago

This was my problem, not HGrid's, so well done. It still doesn't update the name, but I will either submit that separately or fix it in my code.