Skip to content
Snippets Groups Projects
Verified Commit 3d1228f8 authored by Julian's avatar Julian Committed by Jonathan Weth
Browse files

Hide the progress bar in a more beautiful way

(cherry picked from commit 0effbeea)
parent 78f9ead1
No related branches found
No related tags found
1 merge request!691Prepare release 2.0rc3
......@@ -13,7 +13,6 @@ var Autocomplete = function (options) {
this.form_elem = null;
this.query_box = null;
this.selected_element = null;
this.loader = $("#search-loader");
};
Autocomplete.prototype.setup = function () {
......@@ -131,12 +130,5 @@ Autocomplete.prototype.setSelectedResult = function (element) {
};
Autocomplete.prototype.setLoader = function (value) {
var self = this;
if (typeof value === "boolean"){
if (value) {
self.loader.show();
} else {
self.loader.hide();
}
}
$("#search-loader").css("display", (value === true ? "block" : "none"))
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment