Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.1
-
Fix Version/s: None
-
Component/s: Block: Email_list
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
Currently, users can only choose names on the new email form by bringing up the contacts pop-up. We'd like to have the ability to type in names directly. An autocomplete feature, where the user can type in the first few letters of a name and select from a list of possible matches, would be very useful.
I'm testing a patch now and will attach it later today.
Attachments
-
$i18n.getText("admin.common.words.hide")
- contacts.zip
- 27/Aug/08 3:29 AM
- 53 kB
- Ann Adamcik
-
- contacts/.svn/all-wcprops 1 kB
- contacts/.svn/entries 2 kB
- contacts/.svn/format 0.0 kB
- contacts/.../autocomplete-skin.css.svn-base 0.0 kB
- contacts/.svn/.../dinamiclib.php.svn-base 0.0 kB
- contacts/.svn/.../domviewer.html.svn-base 0.0 kB
- contacts/.svn/.../licencia.html.svn-base 0.0 kB
- contacts/.svn/.../list.php.svn-base 0.0 kB
- contacts/.svn/.../search.php.svn-base 0.0 kB
- contacts/.svn/.../search_users.php.svn-base 0.0 kB
- contacts/.../yui_autocomplete.html.svn-base 0.0 kB
- contacts/.../autocomplete-skin.css.svn-base 2 kB
- contacts/.svn/.../dinamiclib.php.svn-base 7 kB
- contacts/.svn/.../domviewer.html.svn-base 5 kB
- contacts/.svn/.../licencia.html.svn-base 36 kB
- contacts/.svn/.../list.php.svn-base 9 kB
- contacts/.svn/.../search.php.svn-base 15 kB
- contacts/.svn/.../search_users.php.svn-base 2 kB
- contacts/.../yui_autocomplete.html.svn-base 5 kB
- contacts/autocomplete-skin.css 2 kB
- contacts/dinamiclib.php 7 kB
- contacts/domviewer.html 5 kB
- contacts/licencia.html 36 kB
- contacts/list.php 9 kB
- contacts/search.php 15 kB
- contacts/search_users.php 2 kB
- contacts/yui_autocomplete.html 5 kB
-
- yuiautocomplete.patch
- 27/Aug/08 3:29 AM
- 12 kB
- Ann Adamcik
-
- yuiautocomplete-updated.patch
- 29/Aug/08 2:58 AM
- 16 kB
- Ann Adamcik
-
- ISUautocomplete.jpg
- 130 kB
- 27/Aug/08 2:04 AM
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
I found an issue with the previous patch - if users add contacts (through the contacts pop-up or the autocomplete feature), and then delete names from the text fields, the message gets sent to the deleted users.
The updated patch adds a validate function that makes sure the user ids in the hidden to/cc/bcc fields match up with the names entered in the fields. I also added an error if the user types in an invalid name.
I discovered last week that there was a YUI library update in Moodle core that breaks this autocomplete patch (see MDL-14383). So, the attached contacts patch works on builds prior to July 25, 2008 (YUI 2.5.0). For builds after that date (YUI 2.5.2), the following change needs to be made:
In moodle/blocks/email_list/email/contacts/yui_autocomplete.html, change line 37 from
var fieldid = oMyAcInstance["_oTextbox"].id;
to
var fieldid = oMyAcInstance["_elTextbox"].id;
Hi Toni,
The yuiautocomplete_updated.patch file contains the changes to mail_edit_form.php, as well as a few other files in the main email directory.
Note that the recent core update to YUI 2.6.0 has broken this functionality. I'm working on fixing it now.
Thanks,
-Ann
Toni - I have not heard from you in a while. I figured I would comment here to make sure you are OK. Are you still able to work on helping to resolve this issue? Peace - Anthony
The attached contacts directory needs to be unzipped and placed in the blocks/email_list/email directory, and the attached patch file makes changes to lib.php, mail_edit_form.php, manage.js, and sendmail.php.
These changes allow users to type names directly into the contact fields. Additionally, when the first letter (or first few letters) of a name are entered, a list of matching names will appear. The list is filtered by the user's group if the course group mode is set.