From: Matthijs Kooijman Date: Tue, 3 Feb 2009 17:36:06 +0000 (+0100) Subject: Make the DropDownMultiple widget degrade properly. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=46815b6e34ec269366b36597c3caa8274e3bec3f;hp=46815b6e34ec269366b36597c3caa8274e3bec3f;p=matthijs%2Fprojects%2Fxerxes.git Make the DropDownMultiple widget degrade properly. DropDownMultiple now extends the original SelectMultiple widget and always renders both widgets. The DropDownMultiple widget is disabled and hidden by default in the HTML and is enabled by Javascript code, keeping things working even when Javascript is not available. As an added advantage, we can now reuse some of the code from SelectMultiple. In particular, by using the render_options method, we should now also support more complicated (like grouped) lists of choices. ---