View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
556 | Composr | core_form_interfaces | public | 2012-06-08 11:36 | 2014-10-13 15:17 |
Reporter | Chris Graham | Assigned To | Chris Graham | ||
Priority | normal | Severity | feature | ||
Status | resolved | Resolution | fixed | ||
Summary | 556: jQuery / Move many input types to select2 | ||||
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. | ||||
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. | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Time estimation (hours) | 30 | ||||
Sponsorship open | |||||
related to | 1312 | Resolved | Chris Graham | Composr non-bundled addons | Image slider |
related to | 475 | Closed | Chris Graham | Composr | Activity addon cleanup |
related to | 1567 | Resolved | Chris Graham | Composr | Remove YUI |
|
Consider integrating jQuery and using jQuery effects, like slide effects. Assimilate all the UI wonders that have developed, rather than trying to reimplement them ourselves. |
|
I'm still holding back on this one, just because things change so fast while our conservative status quo is fine. Users have the option of adding jQuery stuff on top of Composr very easily, and even some of our addons do. 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). |
|
Regarding getting rid of YUI, go for HTML5 webform shims as much as possible: http://www.useragentman.com/blog/2010/07/27/creating-cross-browser-html5-forms-now-using-modernizr-webforms2-and-html5widgets-2/ |
|
select2 integrated for standard list fields 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 |