#556 - jQuery / Move many input types to select2
| Identifier | #556 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | jQuery / Move many input types to select2 |
| Status | Completed |
| Handling member | Chris Graham |
| Addon | core_form_interfaces |
| Description | http://ivaynberg.github.com/select2/
All the following input types would benefit: - form_input_list - form_input_multi_list - form_input_author - form_input_username - form_input_multi_author - form_input_multi_username - meta keyword input Also some ugly lists used in other places might be changeable using this. Replacing lists with little cog icons is popular nowadays, that might be done on the Conversr forumview/topicview with the control function lists. |
| Steps to reproduce | |
| Additional information | This is a jQuery plugin. We'd probably want to start bundling jQuery. If that is going to happen, it makes sense to kick out YUI and replace those components with jQuery components. Probably also JAVASCRIPT_MORE.tpl could go. Probably also some parts of the Composr Javascript, such as toggleable-trays, set_inner_html, and fade transitions.
That way, we have Composr's native Javascript, CKEditor, EditArea, and jQuery. We want to keep the number of external JS libraries to a minimum to streamline the code. |
| Related to | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".
Comments
It may be within a few years we are all using something like Dart, or a Javascript 3 that incorporates similar stuff to jQuery. If that's likely, I'd rather not go ripping out long functional parts of Composr, just to replace them with something temporary that is equally messy (jQuery ain't any prettier).
http://www.useragentman.com/blog/2010/07/27/creating-cross-browser-html5-forms-now-using-modernizr-webforms2-and-html5widgets-2/
jQuery and jQuery UI were added to core
YUI was dropped
HTML5 date&color input widgets, with jQuery/jQuery-UI fallbacks, were implemented
JAVASCRIPT_MORE was dropped
Not done:
- meta keyword input (would just create more problems, easier to just type in a line than fiddle with entering custom selections into a list many times)
- author/username - we already did an alternative jQuery plugin for this
- cog icons - some users already struggle to find topic options, best to leave them visible by default
- jQuery effects -- we are using a lot of CSS effects in v9 and hence v10 too, jQuery was of doing things are getting less common and are slower -- however with jQuery in core people can add things in using normal themeing very easily
- replacing much core Composr JS with jQuery -- I don't want to add jQuery as a permanent dependency for basic things, and I want to be able to continue to really streamline/optimise/customise our basic JS library features -- however now that jQuery is core, any screen may call up and use jQuery code as it wants to