$ul.empty();
$section.show();
- $section.find(".loader").oneTime(1000, "loading", function () {
- $(this).show();
- });
-
if ($section.data("ajax")) {
$section.data("ajax").abort();
}
success: function (results) {
var elements;
- $section.find(".loader").stopTime("loading").hide();
+ $section.find(".loader").hide();
if (merge) {
elements = results.elements.reduce(function (hash, element) {
}
},
error: function (xhr, status, error) {
- $section.find(".loader").stopTime("loading").hide();
+ $section.find(".loader").hide();
$("<li>")
.addClass("query-result list-group-item")