You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2010-01-20 17:40:55

feystorm
Member
Registered: 2009-10-13
Posts: 6

Bug: abort previous dropdown search

When typing text in the search box for an ajax <select> dropdown, the previous searches are not canceled. So if you type fast enough, or the web server returns the ajax calls out of order, then you could get incomplete search results.
Below is the fix

--- ajax.function.php.orig      2010-01-20 15:35:02.000000000 +0000
+++ ajax.function.php   2010-01-20 15:35:05.000000000 +0000
@@ -199,6 +199,7 @@

        // Get it from a Ext.Element object
        //echo "Ext.onReady(function() {";
+               echo "Ext.get('$toupdate').getUpdater().abort();";
                echo "Ext.get('$toupdate').load({
                        url: '$url',
                        scripts: true";

GLPI 0.72.3

Last edited by feystorm (2010-01-20 17:42:34)

Offline

Board footer

Powered by FluxBB