diff --git a/scripts/admin/listsurvey.js b/scripts/admin/listsurvey.js index fc2914213d7..9bc2742280e 100644 --- a/scripts/admin/listsurvey.js +++ b/scripts/admin/listsurvey.js @@ -125,6 +125,9 @@ $(document).ready(function(){ loadonce : true, pager: "#pager", caption: sCaption, + beforeProcessing: function(data){ + $('#displaysurveys tbody').hide(); + }, loadComplete: function(data){ // Need this for vertical scrollbar $('#displaysurveys').setGridWidth($(window).width()-4); @@ -133,6 +136,7 @@ $(document).ready(function(){ if (jQuery("#displaysurveys").jqGrid('getGridParam','datatype') === "json") { setTimeout(function(){ jQuery("#displaysurveys").trigger("reloadGrid"); + $('#displaysurveys tbody').show(); },100); } }