Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #09216: CPDB paging doesn't seem to be working properly
Dev: Initially set datatype to local for pagination Dev: Reset datatype to JSON on edit or add
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,7 +116,7 @@ $(document).ready(function() { | |
viewrecords : true, | ||
rowList: [25,50,100,250,500,1000,2500,5000], | ||
multiselect: true, | ||
loadonce : false, | ||
loadonce : true, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tpartner
via email
Author
Collaborator
|
||
loadComplete : function() { | ||
/* Sneaky way of adding custom icons to jqGrid pager buttons */ | ||
$("#pager").find(".ui-share-icon") | ||
|
@@ -605,7 +605,12 @@ $(document).ready(function() { | |
$.extend(jQuery.jgrid.edit,{ | ||
closeAfterAdd: true, | ||
reloadAfterSubmit: true, | ||
closeOnEspace:true | ||
closeOnEspace:true, | ||
beforeSubmit: function () { | ||
// reset the datatype to JSON (loadonce:true sets it to local) | ||
$(this).jqGrid("setGridParam", {datatype: "json"}); | ||
return [true,"",""]; | ||
} | ||
}); | ||
|
||
//script for sharing of participants | ||
|
@tpartner It does not work properly with loadonce: true . I can never page more than 25/50 responses. I reverted this in 716670e
Can you explain why you thought this is necessary?