From 6be6b5bbc9c719cea35d4e494ee262d8a54d6bb5 Mon Sep 17 00:00:00 2001 From: tpartner Date: Mon, 27 Jan 2014 12:33:28 -0500 Subject: [PATCH] Fixed issue #08598: incorrect alphabetically sort of surveys in list Dev Prevent the "flash" when the grid is reloaded after correctly sorting --- scripts/admin/listsurvey.js | 4 ++++ 1 file changed, 4 insertions(+) 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); } }