Provide autocomplete pieforms elements

Bug #1323921 reported by Aaron Wells on 2014-05-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Wishlist
Aaron Wells

Bug Description

The interface for artefact-level sharing ( https://bugs.launchpad.net/mahara/+bug/1298646 ) requires a Pieform element that will do AJAX-based autocomplete. You start typing in the name of the person you want to share with, and it presents you with a list of eligible people.

This functionality could also be useful in other places throughout Mahara as well.

Aaron Wells (u-aaronw) wrote :

There's a patch for this here: https://reviews.mahara.org/3260

It uses the JQuery Tokeninput library: http://loopj.com/jquery-tokeninput/

However, I think the JQuery Select2 library may be a better choice. That's what we use in Catalyst's internal issue tracking site, so I can vouch that it does a solid job. http://ivaynberg.github.io/select2/

Aaron Wells (u-aaronw) wrote :

I ran tokeninput and select2 by Julius for accessibility testing and he said select2 is better for accessibility as well.

Mahara Bot (dev-mahara) wrote :

Patch for "master" branch: https://reviews.mahara.org/3397

Aaron Wells (u-aaronw) wrote :

I've attached a zip file containing the PHP files that I used to test this during development:

1. test.php: This is a basic Mahara page with a Pieform in it that has an autocomplete element.
2. testajax.php: This is the ajax script that supplies it with data
3. test.tpl: This is the dwoo template for test.php. It should be copied to theme/raw/templates/test.tpl

Reviewed: https://reviews.mahara.org/3396
Committed: http://gitorious.org/mahara/mahara/commit/fa56292841276116eb81a3e2751d12346677cf7d
Submitter: Yuliya Bozhko (<email address hidden>)
Branch: master

commit fa56292841276116eb81a3e2751d12346677cf7d
Author: Aaron Wells <email address hidden>
Date: Wed May 28 15:29:17 2014 +1200

Adding Select2 jQuery library

Bug 1323921: This jQuery library turns "select" tags into autocomplete fields

Change-Id: Idc68bcfbe08d5ba5dfae47b748f43072abb09a94

Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/3397
Committed: http://gitorious.org/mahara/mahara/commit/c77652d5107ed9978d03319fd23375c831aad2da
Submitter: Yuliya Bozhko (<email address hidden>)
Branch: master

commit c77652d5107ed9978d03319fd23375c831aad2da
Author: Aaron Wells <email address hidden>
Date: Wed May 28 15:43:34 2014 +1200

Mahara compatibility changes for Select2 external library

Bug 1323921

Change-Id: I77827d61f77cc9698b1799e3fb2e334670a19b72
Signed-off-by: Yuliya Bozhko <email address hidden>

Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/3260
Committed: http://gitorious.org/mahara/mahara/commit/0c26dd0a884513e5784f8b17bda399b038ff974a
Submitter: Son Nguyen (<email address hidden>)
Branch: master

commit 0c26dd0a884513e5784f8b17bda399b038ff974a
Author: Aaron Wells <email address hidden>
Date: Tue Apr 15 10:25:23 2014 +1200

Add autocomplete form element (Bug #1323921)

Change-Id: I49fffc7f4f0386407ddcf309239a6324047805d6
Signed-off-by: Yuliya Bozhko <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
tags: added: nominatedfeature

For the manual: Used for sending a message to multiple users for example.

Aaron Wells (u-aaronw) on 2014-10-21
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers