Closed Bug 1082607 Opened 10 years ago Closed 10 years ago

Disable Edit and Remove buttons on Tag Manager when there is no selection

Categories

(Thunderbird :: Preferences, defect)

defect
Not set
normal

Tracking

(thunderbird36 fixed)

RESOLVED FIXED
Thunderbird 36.0
Tracking Status
thunderbird36 --- fixed

People

(Reporter: javirid, Assigned: javirid)

Details

(Keywords: polish)

Attachments

(1 file, 1 obsolete file)

Steps to Reproduce:
-------------------
1. Open Tag Manager on Preferences/Display
2. There should be some tags in a list-box. Don't select any of them.
3. Press Edit button or Remove button.

What happens
------------
Nothing (in fact, that is right!)

Results expected
----------------
Neither Edit nor Remove buttons should be clickable when no action will be performed after the click event.
Attachment #8522495 - Flags: review?(mkmelin+mozilla)
Assignee: nobody → leofigueres
Status: NEW → ASSIGNED
Comment on attachment 8522495 [details] [diff] [review]
Disable Edit and Remove buttons on Tag Manager when there is no selection

Review of attachment 8522495 [details] [diff] [review]:
-----------------------------------------------------------------

Nice polish, thx Javi! r=mkmelin

"let" is generally perferred over "var" for new code, though personally I don't care that much.
If you want you can also inline the listBox and btnRemove usage, e.g. document.getElementById("removeTagButton").disabled = .....

::: mail/components/preferences/display.js
@@ +241,5 @@
>                   "chrome,titlebar,modal",
>                   args);
> +  },
> +
> +  OnSelect: function()

please use lowerCamelCase for function names
Attachment #8522495 - Flags: review?(mkmelin+mozilla) → review+
Attached patch patch v1.0.1Splinter Review
Attachment #8522495 - Attachment is obsolete: true
Keywords: checkin-needed
https://hg.mozilla.org/comm-central/rev/b43cb16978c8 -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 36.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: