Closed
Bug 119768
Opened 24 years ago
Closed 23 years ago
Remove button in Smart Browsning should be context disabled
Categories
(SeaMonkey :: Preferences, defect, P4)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.9
People
(Reporter: bugzilla, Assigned: samir_bugzilla)
Details
Attachments
(1 file, 1 obsolete file)
|
2.47 KB,
patch
|
hewitt
:
superreview+
|
Details | Diff | Splinter Review |
Go into Edit -> Prefs -> Navigator -> Smart Browsing
The Remove button is active even though nothing is highlighted. There's nothing
to remove but still the button is active. The button should only be active is
there's something that can be removed.
build 20020111
| Assignee | ||
Comment 2•24 years ago
|
||
| Assignee | ||
Updated•24 years ago
|
| Assignee | ||
Comment 4•23 years ago
|
||
morse, please r.
hewitt, please sr.
Priority: -- → P4
Target Milestone: --- → mozilla0.9.9
Comment 5•23 years ago
|
||
Comment on attachment 65331 [details] [diff] [review]
Fix to disable remove button when no domains present in disabled list.
r=morse
Attachment #65331 -
Flags: review+
Comment 6•23 years ago
|
||
Can you change this:
+ removeButton.disabled = "true";
+ else
+ removeButton.removeAttribute("disabled");
To this:
+ removeButton.disabled = true;
+ else
+ removeButton.disabled = false;
| Assignee | ||
Comment 7•23 years ago
|
||
Hewitt,
Could you highlight why setting ``disabled'' to a JS boolean of false is better
than removing the attribute altogether? And could you sr the change while
you're at it? Thanks.
| Assignee | ||
Updated•23 years ago
|
Attachment #65331 -
Attachment is obsolete: true
Comment 8•23 years ago
|
||
Comment on attachment 68409 [details] [diff] [review]
Patch rev 2 with reviewer changes.
sr=hewitt
Attachment #68409 -
Flags: superreview+
Comment 9•23 years ago
|
||
The disabled property is boolean, so you shouldn't be passing strings like
"true" into it. This will work for "true", but won't for "false". Since we
have this propery, and it does the job of removing the attribute, might as well
be symmetrical and conventional and use it consistently.
| Assignee | ||
Comment 10•23 years ago
|
||
Checked in.
Comment 11•23 years ago
|
||
If I ctrl+click to un-highlight the current selection in the list, shouldn't the
Remove button be disabled?
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•