When the autocompletion helper tool for Search Autocomplete administrators is enabled, it appends the div with id="sa_admin_menu" to the body on every ajax request. Perhaps using jQuery once on line 61 of the file search_autocomplete.admin.js would fix the problem.

Comments

istavros created an issue. See original summary.

istavros’s picture

Used jQuery once to append the div with id="sa_admin_menu" to the body only once.

dom.’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new863 bytes

Hi !
Thanks for patch, there is a little typo (see below), so here is another patch with correction. Still I'm RTBC it for it works ok !

+++ b/js/search_autocomplete.admin.js
@@ -58,7 +58,9 @@
+      $("body").once('serch-autocopmlete', function () {

typo here: serch-autocopmlete => search_autocomplete

  • Dom. committed 156b8fb on 7.x-4.x
    Issue #2570001 by istavros, Dom.: Autocompletion helper tool for Search...
dom.’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for reporting and fixing ! I commited this in dev and it will be included in next release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.