Closed
Bug 732746
Opened 12 years ago
Closed 11 years ago
Prompt service should support multiple inputs of the same type
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(blocking-fennec1.0 -)
RESOLVED
DUPLICATE
of bug 830175
Tracking | Status | |
---|---|---|
blocking-fennec1.0 | --- | - |
People
(Reporter: wesj, Unassigned)
Details
Attachments
(1 file)
2.57 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
For one of my extensions, I want to menulists in a prompt dialog. We can do that right now, but in the return value, we only return one type of boxes values (i.e. the return looks like: { menulist: "0" }. We should support putting multiple inputs of the same type on a dialog at the same time (I think we luck out with username+password because, while they're both textboxes, one is a password type textbox and the other is normal).
Reporter | ||
Updated•12 years ago
|
Attachment #602675 -
Flags: review?(mark.finkle)
Updated•12 years ago
|
Attachment #602675 -
Attachment is patch: true
Comment 1•12 years ago
|
||
Comment on attachment 602675 [details] [diff] [review] Patch > private class PromptInput { > private String label = ""; > private String type = ""; > private String hint = ""; >+ private String id = ""; Remove the extra spaces please (in the other lines too) Seems like a simple patch. Is this all that's needed?
Attachment #602675 -
Flags: review?(mark.finkle) → review+
Reporter | ||
Comment 2•12 years ago
|
||
Yep. With this callers can specify an with the message like: msg = { type: "Prompt:Show", inputs: [ { type: "text" }, { type: "text", id: "myText2" }, ] } and get back a result like: { text: "text1", myText2: "text2" } if they don't pass in an id they will receive: { text: "text2" }
Comment 3•12 years ago
|
||
I assume this would work too: msg = { type: "Prompt:Show", inputs: [ { type: "text", id: "myText1" }, { type: "text", id: "myText2" }, ] }
Reporter | ||
Comment 4•12 years ago
|
||
Yep. :) Should at least. I'll double check through my addon before I check in. And start looking at hooking up some Robotium soon too.
Updated•12 years ago
|
blocking-fennec1.0: --- → ?
Updated•12 years ago
|
blocking-fennec1.0: ? → -
Reporter | ||
Comment 5•11 years ago
|
||
I knew I fixed this, but forgot to check it in. kats fixed it in bug 830175 again. Closing.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•