Edgewall Software
Modify

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)

trac_bug_before.png (37.6 KB ) - added by domluc@… 17 years ago.
Shot before click on something
trac_bug.png (31.6 KB ) - added by domluc@… 17 years ago.
Shot after expand and collapse trees some times

Download all attachments as: .zip

Change History (10)

by domluc@…, 17 years ago

Attachment: trac_bug_before.png added

Shot before click on something

by domluc@…, 17 years ago

Attachment: trac_bug.png added

Shot after expand and collapse trees some times

comment:1 by Eli Carter, 17 years ago

What browser are you using?

comment:2 by domluc@…, 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 Tim Hatch, 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:4 by domluc@…, 17 years ago

I'm running trunk (r5892), this behavior is really strange.

comment:5 by Tim Hatch, 17 years ago

I reverted r5890 locally and that's not the issue. I'll look into it further.

comment:6 by Christian Boos, 17 years ago

Status: newassigned

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

     
    5555    // Note that the above will show all the already fetched subtree,
    5656    // so we have to fold again the folders which were already collapsed.
    5757    tr.siblings("tr.collapsed").each(function() {
    58       expander.siblings("tr."+expander.get(0).id).hide();
     58      tr.siblings("tr."+this.id).not(this).hide();
    5959    });
    6060  } else {                                // then *fetch*
    6161    var td = expander.parents("td");

in reply to:  6 comment:7 by domluc@…, 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

     
    5555    // Note that the above will show all the already fetched subtree,
    5656    // so we have to fold again the folders which were already collapsed.
    5757    tr.siblings("tr.collapsed").each(function() {
    58       expander.siblings("tr."+expander.get(0).id).hide();
     58      tr.siblings("tr."+this.id).not(this).hide();
    5959    });
    6060  } else {                                // then *fetch*
    6161    var td = expander.parents("td");

Whhuaaa! Looks like it's correct. I modify manually it and works fine to me!

comment:8 by Christian Boos, 17 years ago

Milestone: 0.11.10.11
Resolution: fixed
Status: assignedclosed

Fix applied in r5907, as it worked fine using Firefox, IE7 and Opera.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.