Skip to content

Commit

Permalink
Dev: failsaving if the grid is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Dec 4, 2017
1 parent ba1d9d6 commit 0384111
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/views/admin/token/browse.php
Expand Up @@ -54,10 +54,12 @@
<?php
// To update rows per page via ajax
App()->getClientScript()->registerScript("Tokens:updateRowsPerPage", "
if($('token-grid').length > 0){
reinstallParticipantsFilterDatePicker();
jQuery(document).on('change', '#pageSize', function(){
$.fn.yiiGridView.update('token-grid',{ data:{ pageSize: $(this).val() }});
});
}
", LSYii_ClientScript::POS_POSTSCRIPT);
?>
</div>
Expand Down

0 comments on commit 0384111

Please sign in to comment.