Skip to content

Commit

Permalink
Fixed issue #08598: incorrect alphabetically sort of surveys in list
Browse files Browse the repository at this point in the history
Dev Prevent the "flash" when the grid is reloaded after correctly sorting
  • Loading branch information
tpartner committed Jan 27, 2014
1 parent e41668d commit 6be6b5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/admin/listsurvey.js
Expand Up @@ -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);
Expand All @@ -133,6 +136,7 @@ $(document).ready(function(){
if (jQuery("#displaysurveys").jqGrid('getGridParam','datatype') === "json") {
setTimeout(function(){
jQuery("#displaysurveys").trigger("reloadGrid");
$('#displaysurveys tbody').show();
},100);
}
}
Expand Down

0 comments on commit 6be6b5b

Please sign in to comment.