Fixed loading wheel on mobile UI
The loading wheel correctly disapears when the loading is completed
on the mobile search UI.
@@ -13,6 +13,12 @@ AjaxFranceLabs.PrevisualizeResultWidget = AjaxFranceLabs.ResultWidget.extend({
afterRequest : function() {
var data = this.manager.response, elm = $(this.elm),self=this;
+
+ if (!this.isMobile)
+ elm.find('.doc_list').empty();
+ else
+ elm.find('.doc_list .bar-loader').remove();
+
var querySolr = getParamValue('query', decodeURIComponent(window.location.search));
this._super();
var self = this;
