Closed Bug 82271 Opened 25 years ago Closed 25 years ago

Check Spelling before sending preference not lockable

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rvelasco, Assigned: eddyk)

References

(Blocks 1 open bug, )

Details

Attachments

(2 files)

Prefstring "mail.SpellCheckBeforeSend" in Edit -> Preferences -> Mail and Newsgroups -> Message Composition is not lockable. Locking prefs is a new feautre implemented last month by eddyk@netscape.com. All new general pref elements added to prefs window needs to adhere to locking conventions. The lockPref function is used to lock elements in the preference window... i.e. lockPref("mail.SpellCheckBeforeSend", true) must be added to a hashed CFG file or all-ns.js or prefs.js file to disable the pref. newsgroup posting on the URL field of this bug and listed below. news://news.mozilla.org/3AC8F5D2.6CA02623%40netscape.com
assigning QA contact to myself.
QA Contact: esther → rvelasco
Blocks: 70538
Keywords: nsenterprise
Eddy says he wants this =).
Assignee: mscott → eddyk
Changing from a default disabled state and removing disabled attribute if spell checker is available, to starting in a non-disabled state and setting the disabled attribute if the spell check is not available. This allows the nsPrefWindow code to properly lock the button element when the pref string is locked. The previous code had the nsPrefWindow disabling the button, then the js code enabling it because the spell checker was available. r and sr needed.
r=mscott
r=hwaara
r/sr=mscott
checked in. marking fixed.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
verified on trunk linux 2001071109 windows 20010071104 mac 2001071208
Status: RESOLVED → VERIFIED
To test, please download above attachment and save to you mozilla/netscape application directory, call the file spelllock.cfg. Add the following lines to your all.js/all-ns.js (mozilla/netscape respectively): pref("general.config.filename", "spelllock.cfg"); pref("general.config.vendor", "spelllock"); restart browser and you should see the preference Item unchecked (I specified it to be false in the CFG) and greyed out.
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: