Edgewall Software
Modify

Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#9339 closed defect (fixed)

[Patch] Nothing happens by clicking on foldable elements

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Milestone: 0.12.1
Component: general Version: 0.12dev
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The cursor on foldable elements excluding the anchor is "pointer" and seems clickable. However nothing happens by clicking.

It should that it's clickable. attachment:folding.diff.

Attachments (3)

folding.diff (778 bytes ) - added by Jun Omae 15 years ago.
foldable-cursor.png (12.5 KB ) - added by Jun Omae 15 years ago.
foldable-area.png (12.8 KB ) - added by Jun Omae 15 years ago.

Download all attachments as: .zip

Change History (11)

by Jun Omae, 15 years ago

Attachment: folding.diff added

by Jun Omae, 15 years ago

Attachment: foldable-cursor.png added

comment:1 by Christian Boos, 15 years ago

I'm afraid you have to be a bit more precise about the error.

The Attachments foldable section on Wiki pages works both here on t.e.o (e.g. MacroBazaar#no1) and in all my test instances…

by Jun Omae, 15 years ago

Attachment: foldable-area.png added

comment:2 by Remy Blank, 15 years ago

Milestone: 0.120.12.1

I noticed that, too. If you click on the word "Attachments", the attachments section unfolds. But if you click on the white space right of the word, the cursor still shows a hand, but if you click, nothing happens.

This is cosmetic, so we can do that after 0.12.

comment:3 by Christian Boos, 15 years ago

Ah, understood. But then, for the fix I'd suggest that we move the .css("cursor", "pointer") to the <a> element only.

comment:4 by Remy Blank, 15 years ago

That's what I would have suggested, too.

comment:5 by Jun Omae, 15 years ago

That's OK. The default cursor of anchors is "pointer", we should remove .css("cursor", "pointer")

  • trac/htdocs/js/folding.js

    diff --git a/trac/htdocs/js/folding.js b/trac/htdocs/js/folding.js
    index 384fd1d..f8e7a12 100644
    a b  
    2323      if (autofold && (count != fragId))
    2424        trigger.parents().eq(1).addClass("collapsed");
    2525      count++;
    26     }).css("cursor", "pointer");
     26    });
    2727  }
    2828
    2929  /** Enable columns of a table to be hidden by clicking on the column header.

comment:6 by Remy Blank, 14 years ago

Owner: set to Remy Blank

in reply to:  5 comment:7 by Remy Blank, 14 years ago

Resolution: fixed
Status: newclosed

Replying to jomae:

That's OK. The default cursor of anchors is "pointer", we should remove .css("cursor", "pointer")

Indeed, that works fine. Applied in [10001].

comment:8 by Remy Blank, 14 years ago

Owner: changed from Remy Blank to Jun Omae

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae 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.