Trellis Learning Management System


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000262 [Trellis] Administration/Reports minor always 2010-06-15 17:41 2010-06-21 11:59
Reporter henry View Status public  
Assigned To henry
Priority normal Resolution open  
Status assigned   Product Version 0.5.2
Summary 0000262: unable to have more than one autocomplete on a page
Description The software currently does not support more than one autocomplete on a page. Whatever function you pass as the getTrellisOperations parameter (to the jquery autocomplete object), it will call the function named "getTrellisOperations" and not the function you passed. In this example:

<script type="text/javascript">
    function my_custom_function {//code here}

    $("#element_id").autocomplete(url,{getTrellisOperations:my_custom_function});
</script>

This should result in my_custom_function getting called when the autocomplete object wishes to call getTrellisOperations. Instead, it still calls "getTrellisOperations".
Additional Information
Tags No tags attached.
Error Code
URI
Attached Files

- Relationships

-  Notes
User avatar (0001120)
henry (developer)
2010-06-15 17:56
edited on: 2010-06-15 17:57

This can be resolved by calling the actual function specified in the object parameters instead of directly calling getTrellisOperations. On line 349 of jquery.autocomplete.js change:

var operations = getTrellisOperations(q, $input.id);

to:

var operations = options.getTrellisOperations(q, $input.id);


- Issue History
Date Modified Username Field Change
2010-06-15 17:41 henry New Issue
2010-06-15 17:51 henry Description Updated
2010-06-15 17:53 henry Description Updated
2010-06-15 17:56 henry Note Added: 0001120
2010-06-15 17:57 henry Note Edited: 0001120
2010-06-21 11:59 james Status new => confirmed
2010-06-21 11:59 james Status confirmed => assigned
2010-06-21 11:59 james Assigned To => henry



Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker