The attached patch turns off the morechoices checkbox, but it should do that only if the user agent supports javascript. A good way is to disable the box *using* javascript.
| Comment | File | Size | Author |
|---|---|---|---|
| disable_morechoices.patch.txt | 1.08 KB | anarcat |
The attached patch turns off the morechoices checkbox, but it should do that only if the user agent supports javascript. A good way is to disable the box *using* javascript.
| Comment | File | Size | Author |
|---|---|---|---|
| disable_morechoices.patch.txt | 1.08 KB | anarcat |
Comments
Comment #1
anders.fajerson commentedI don't follow. "get rid of the "add more choices" checkbox only if javascript is disabled" - you mean the the opposit; not to show it when javascript is enabled, right?
And what is this patch for, just an example on how it shouldn't be done? Just use jQuery .hide() and hide the morechoise option:
$("#morechoices").hide()Comment #2
anarcat commentedRight... "enabled" was what I meant... :) I just scratched this here quickly to not forget it...
The patch is indeed an example on "how not to do it". jQuery is probably the way to go, but I'm not very familiar with it, so I'll take your word for it...
Comment #3
anarcat commentedComment #4
anders.fajerson commentedOk, I see. Just a friendly reminder: For the issues to be usable it has to be more than a scratch pad for the main developers. This also goes for CVS commit messages that needs to be concise and informative to be easy to follow from "the outside".
Comment #5
anarcat commentedWell, I think this was just a case of a typo in the topic of this issue, and the reason for that typo is that I filed the issue too quickly. For that I apologize.
However, I think I have tried maintain a pretty high standard of keeping relevant commitlogs and compartimented commits in decisions.
Comment #6
anarcat commentedFixed in #45964.
Comment #7
(not verified) commented