#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)
Change History (11)
by , 15 years ago
Attachment: | folding.diff added |
---|
by , 15 years ago
Attachment: | foldable-cursor.png added |
---|
comment:1 by , 15 years ago
by , 15 years ago
Attachment: | foldable-area.png added |
---|
comment:2 by , 15 years ago
Milestone: | 0.12 → 0.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 , 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.
follow-up: 7 comment:5 by , 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 23 23 if (autofold && (count != fragId)) 24 24 trigger.parents().eq(1).addClass("collapsed"); 25 25 count++; 26 }) .css("cursor", "pointer");26 }); 27 27 } 28 28 29 29 /** Enable columns of a table to be hidden by clicking on the column header.
comment:6 by , 14 years ago
Owner: | set to |
---|
comment:7 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:8 by , 14 years ago
Owner: | changed from | to
---|
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…