Opened 17 years ago
Closed 17 years ago
#5846 closed defect (fixed)
expanding browser source tree, empty root folder
Reported by: | domluc | Owned by: | Christian Boos |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | version control/browser | Version: | devel |
Severity: | major | Keywords: | |
Cc: | domluc@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
When I navigate to Browse Source, and expand and collapse tree of repository the root folder is cleared.
Attachments (2)
Change History (10)
by , 17 years ago
Attachment: | trac_bug_before.png added |
---|
comment:2 by , 17 years ago
I'm using Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
comment:3 by , 17 years ago
I'm able to reproduce with Firefox 2.0.0.6/Linux also (on latest trunk, which means post. Rather strange behavior. Here's what it does:
- Expand & collapse on a single item work fine all day long.
- The first expand & collapse of any folder also work okay the first time
- Expanding the item a second time after any other item has been expanded, the text disappears permamently
Are you running post-r5890? There was one regression related to expanding dirs already noticed in that rev.
comment:5 by , 17 years ago
I reverted r5890 locally and that's not the issue. I'll look into it further.
follow-up: 7 comment:6 by , 17 years ago
Status: | new → assigned |
---|
Not sure why it used to work (probably a bug now fixed in jQuery 1.1.3.1), but I think I've found a fix:
-
expand_dir.js
55 55 // Note that the above will show all the already fetched subtree, 56 56 // so we have to fold again the folders which were already collapsed. 57 57 tr.siblings("tr.collapsed").each(function() { 58 expander.siblings("tr."+expander.get(0).id).hide();58 tr.siblings("tr."+this.id).not(this).hide(); 59 59 }); 60 60 } else { // then *fetch* 61 61 var td = expander.parents("td");
comment:7 by , 17 years ago
Replying to cboos:
Not sure why it used to work (probably a bug now fixed in jQuery 1.1.3.1), but I think I've found a fix:
expand_dir.js
55 55 // Note that the above will show all the already fetched subtree, 56 56 // so we have to fold again the folders which were already collapsed. 57 57 tr.siblings("tr.collapsed").each(function() { 58 expander.siblings("tr."+expander.get(0).id).hide();58 tr.siblings("tr."+this.id).not(this).hide(); 59 59 }); 60 60 } else { // then *fetch* 61 61 var td = expander.parents("td");
Whhuaaa! Looks like it's correct. I modify manually it and works fine to me!
comment:8 by , 17 years ago
Milestone: | 0.11.1 → 0.11 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Fix applied in r5907, as it worked fine using Firefox, IE7 and Opera.
Shot before click on something