More tweaking with grids that need to be reloaded immediately after page load. Fixed a bug with the statement_entry balance field, as there were two of them.

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@534 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-11 15:56:40 +00:00
parent b6ee958c35
commit fc4e812d67
4 changed files with 16 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ echo '<div class="account collected">' . "\n";
// Reset the form
function resetForm() {
<?php /* REVISIT <AP>: 20090810; Hate to do this, but first data is wrong... */ ?>
// Kick off the grid
updateEntriesGrid();
}
@@ -45,6 +45,7 @@ function updateEntriesGrid() {
.setGridParam({ page: 1 })
.trigger("reloadGrid");
//$('#debug').html("<PRE>\n"+htmlEncode(dump($('#collected-entries-jqGrid').getGridParam()))+"\n</PRE>")
var gridstate = $('#collected-entries-jqGrid').getGridParam('gridstate');
if (gridstate == 'hidden')
$('#collected-entries .HeaderButton').click();
@@ -204,5 +205,3 @@ echo '</div>' . "\n";
echo '</div>' . "\n";
?>
<a href="#" onClick="$('#debug').html(''); return false;">Clear Debug Output</a>