Closed
Bug 295418
Opened 20 years ago
Closed 20 years ago
simplify returning boolean to show tree tooltip (remove gShowTooltip, checkTooltip)
Categories
(Calendar :: Sunbird Only, defect)
Calendar
Sunbird Only
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gekacheka, Assigned: mostafah)
References
Details
Attachments
(1 file)
|
4.71 KB,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: trunk The mouseover preview code has historically been careful not to display a tooltip when not over an event or task in tree, but uses a convoluted technique involving an unnecessary global variable. The original code works by setting a global variable (gShowToolTip) and then checking for this global variable in function checkTooltip. The tooltip onpopupshowing handlers call one function to set the tool tip and then call checkTooltip to see if it was successful. The reasons for this convoluted implementation no longer exist (if they ever did); it would be simpler and easier to understand just to return the boolean value from the first function. Reproducible: Always Steps to Reproduce:
(patch -l -p 2 -i file.patch) calendar.xul: Change tooltip onpopupshowing handlers to return value from first function changeToolTipTextForEvent, changeToolTipTextForToDo. Remove call to checkTooltip. unifinder.js, unifindertodo.js: Change changeToolTipTextForEvent, changeToolTipTextForToDo to return boolean value if tooltip content created. mouseoverPreviews.js: remove checkTooltip function. remove gShowToolTip and lines that set it.
Comment on attachment 184454 [details] [diff] [review] remove gShowTooltip, checkTooltip, return boolean. (split from bug 295146 as suggested. thanks for reviews!)
Attachment #184454 -
Flags: first-review?(mvl)
Comment 4•20 years ago
|
||
Comment on attachment 184454 [details] [diff] [review] remove gShowTooltip, checkTooltip, return boolean. r=mvl
Attachment #184454 -
Flags: first-review?(mvl) → first-review+
Updated•20 years ago
|
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
QA Contact: gurganbl → sunbird
You need to log in
before you can comment on or make changes to this bug.
Description
•