[Rt-commit] rt 03/04: Make autocomplete handler work in dynamically created modal dom

sunnavy sunnavy at bestpractical.com
Fri Jul 9 16:32:50 EDT 2021


This is an automated email from the git hooks/post-receive script.

sunnavy pushed a commit to branch 5.0/search-filter
in repository rt.

commit 8b6cd54b4409d0e71204298bba0581138346d7ce
Author: sunnavy <sunnavy at bestpractical.com>
AuthorDate: Fri Jun 25 06:51:41 2021 +0800

    Make autocomplete handler work in dynamically created modal dom
---
 share/static/css/elevator-light/misc.css | 4 ++++
 share/static/js/util.js                  | 1 +
 2 files changed, 5 insertions(+)

diff --git a/share/static/css/elevator-light/misc.css b/share/static/css/elevator-light/misc.css
index 58f82460bd..2a05277000 100644
--- a/share/static/css/elevator-light/misc.css
+++ b/share/static/css/elevator-light/misc.css
@@ -160,3 +160,7 @@ span.pagenum {
     padding-top: 0;
     padding-bottom: 0;
 }
+
+ul.ui-autocomplete {
+    z-index: 9999;
+}
diff --git a/share/static/js/util.js b/share/static/js/util.js
index bd9cc01a5a..38b9105c73 100644
--- a/share/static/js/util.js
+++ b/share/static/js/util.js
@@ -45,6 +45,7 @@ var showModal = function(html) {
     // We need to refresh the select picker plugin on AJAX calls
     // since the plugin only runs on page load.
     jQuery('.selectpicker').selectpicker('refresh');
+    RT.Autocomplete.bind(modal);
 };
 
 /* Classes */

-- 
To stop receiving notification emails like this one, please contact
sysadmin at bestpractical.com.


More information about the rt-commit mailing list