Closed Bug 121449 Opened 23 years ago Closed 23 years ago

make single deletions possible from tree elements in Navigator|Languages, Mailnews|Send Format panels

Categories

(SeaMonkey :: Preferences, defect, P2)

x86
Windows 2000
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0

People

(Reporter: racham, Assigned: hewitt)

Details

(Whiteboard: [ADT3])

Attachments

(1 file, 1 obsolete file)

Deleting tree elements is broken in the following windows. 1. Edit|Preferences|Navigator|Languages (languages set tree) 2. Edit|Mail&Newsgroups|Send Format (html & plain text domain trees) 3. View|Character Coding|Customize (charset entries tree) Add entries in any of the tree and then try to delete one or multiple. Error JavaScript error: chrome://messenger/content/messengercompose/pref-formatting.js line 180: row has no properties will be encountered depending on where you are. The above is from Mail&Newsgroups|Send Format panel. All these files have a while loop to allow multiple selections which is broken now due to the wrong values obtained from the tree widget. I will file a separatebug to take care of the tree widget problem. This bug is opened because, today, even if you try to delete a single element in the tree, it fails to do that. So, there is no way to delete these entries other than manually changing the prefs which is no solution. This is happening due the fact that tree.selectedItems.length is returning the same value over and over and tree widget is failing to return the correct value on the second iteration. I have patch that allows us to fix single deletions until the original problem is fixed. This patch will work just fine even after the original problem (will file a bug and update this bug with that info) is fixed.
If there is a single-fix-all solution, please do post an updated patch OR let me know and I will post an updated patch.
Status: NEW → ASSIGNED
Filed bug 121457 to address the core tree widget problem.
Keywords: mailtrack, nsbeta1
Target Milestone: --- → mozilla0.9.9
Comment on attachment 66132 [details] [diff] [review] patch, v1.0 - Allow single selection deletions via a local variable for number of originallly items selected please remove the line: + dump("length = " + obj.tree_node.selectedItems.length + "\n"); Appart that, R=ducarroz
Attachment #66132 - Flags: review+
oops! That was my debug line. Will certainly take care (remove) it. thanks.
Attachment #66132 - Attachment is obsolete: true
Keywords: nsbeta1nsbeta1+
Priority: -- → P2
Comment on attachment 66631 [details] [diff] [review] patch, v1.2 - removed debug dump statement and unused variables R=ducarroz
Attachment #66631 - Flags: review+
Comment on attachment 66631 [details] [diff] [review] patch, v1.2 - removed debug dump statement and unused variables sr=sspitzer
Attachment #66631 - Flags: superreview+
please also get hewitt to look at this. the fix looks similar in all three places, so maybe he can think of a way to solve this in tree.xml
Hewitt mentioned that he is working on patch to make these panels to use listboxes in 099 milestone. All these problems should the go away. Reassigning to Hewitt so that he can keep track of these (121449, 121457) bugs. bhuvan
Assignee: racham → hewitt
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Target Milestone: mozilla0.9.9 → mozilla1.0
ADT3 per ADT/Nav triage.
Whiteboard: [ADT3]
fixed
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
tested using 2002.04.09 comm bits on linux rh7.2, win2k and mac 10.1.3. test #1 (prefs Navigator > Languages) works test #2 (prefs Send Format) works test #3 Customize char set *fails* --no js console info, though should i reopen this bug, based on test #3 failing, or should i just spin off a seperate bug for that? (am leaning towards the latter.)
vrfy'ing. filed bug 137592 for the char coding case.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: