From 75497eb7921ea60f8f6a00f5ffe2a0fc9b6feea5 Mon Sep 17 00:00:00 2001 From: Jim Brandt Date: Mon, 16 Dec 2024 14:11:20 -0500 Subject: [PATCH] Use the bootstrap style spinner when loading --- share/static/js/autocomplete.js | 3 +++ share/static/js/util.js | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/share/static/js/autocomplete.js b/share/static/js/autocomplete.js index b551071dc4..a12af9698b 100644 --- a/share/static/js/autocomplete.js +++ b/share/static/js/autocomplete.js @@ -115,6 +115,9 @@ window.RT.Autocomplete.bind = function(from) { render: { option_create: function(data, escape) { return '
' + escape(data.input) + '
'; + }, + loading: function(data,escape) { + return '
'; } }, load: function(query, callback) { diff --git a/share/static/js/util.js b/share/static/js/util.js index b86396f078..51eaf46f24 100644 --- a/share/static/js/util.js +++ b/share/static/js/util.js @@ -362,6 +362,11 @@ function textToHTML(value) { function initializeSelectElement(elt) { let settings = { allowEmptyOption: true, + render: { + loading: function(data,escape) { + return '
'; + } + } }; if ( elt.options && elt.options.length < RT.Config.SelectLiveSearchLimit ) {