View Issue Details

IDProjectCategoryView StatusLast Update
556Composrcore_form_interfacespublic2014-10-13 15:17
ReporterChris Graham Assigned ToChris Graham  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Summary556: jQuery / Move many input types to select2
Descriptionhttp://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 InformationThis 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.
TagsNo tags attached.
Attach Tags
Time estimation (hours)30
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Relationships

related to 1312 ResolvedChris Graham Composr non-bundled addons Image slider 
related to 475 ClosedChris Graham Composr Activity addon cleanup 
related to 1567 ResolvedChris Graham Composr Remove YUI 

Activities

Chris Graham

2013-01-17 13:55

administrator   ~1140

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.

Chris Graham

2013-12-31 13:41

administrator   ~1961

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).

Chris Graham

2014-02-27 00:50

administrator   ~2054

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/

Chris Graham

2014-10-13 15:17

administrator   ~2289

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

Issue History

Date Modified Username Field Change