プロジェクト

全般

プロフィール

Vote #80311

未完了

Replace gantt and calendar tooltips with jquery tooltips

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
UI_10
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
32
issue_org_id:
32029
author_id:
4
assigned_to_id:
0
comments:
6
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

I think jquery tool-tips should also be used as gantt and calendar tool-tips which display brief information when rolling cursor over issue lines of the timeline/calendar cells, because currently those kind of tool-tips in gantt/calendar aren't designed to spawn on the left, right, below or over the issue lines, depending on which side a free space available, so the tool-tip wouldn't end up half cut outside of the window.
I tested the way jquery tool-tips are displayed and saw that they actually support that kind of smart behavior.

!http://www.redmine.org/attachments/download/23810/gantttooltip.png!

Patch is to be posted.


journals

--------------------------------------------------------------------------------
Attaching a very well working patch! :D

P.S. one thing I wasn't very sure about is the normal way to trigger a jquery tooltip, so I fed empty title tags in *gantt.rb* and *_calendar.html.erb*, in order to make tool-tip events bind properly, else no worky :(
--------------------------------------------------------------------------------
Antonio McDeal wrote:
> Attaching a very well working patch! :D
>
> P.S. one thing I wasn't very sure about is the normal way to trigger a jquery tooltip, so I fed empty title tags in *gantt.rb* and *_calendar.html.erb*, in order to make tool-tip events bind properly, else no worky :(

Nice job! I will help you with this. Also, we should preserve the white background for these tooltips.
--------------------------------------------------------------------------------
Marius BALTEANU wrote:
> Nice job! I will help you with this. Also, we should preserve the white background for these tooltips.
I included your suggestion in an updated patch and introduced a new custom class called "white-tip" for those types of tool-tips. They re still jquery, just with an this extra class to be able to restyle em slightly differently from other jquery toltips in CSS :D
I also moved all old tooltip styles to the new jquery tool-tips section in CSS, to keep things better grouped. I presume it was created once again by mistake in a whole separate place, instead of adding to existing section of *application.css* :D

Now it's only the empty title tags on elements which needs to be reviewed, cuz I'm still not sure if there is other way to trigger tooltips, probably without a need for a title tag :)
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I think this would be a big improvement over the current, custom implementation.
--------------------------------------------------------------------------------


related_issues

relates,Closed,31441,Show elements titles using jQuery UI tooltips

Admin Redmine さんがほぼ2年前に更新

  • カテゴリUI_10 にセット
  • 対象バージョンCandidate for next major release_32 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0