Skip to content
Permalink
Browse files

Add configuration "jq_grid_row_list" to change the jqgrid row list

BT#15270

//$_configuration['jq_grid_row_list'] = ['options' => [50, 100, 200, 500]];
  • Loading branch information...
jmontoyaa committed Feb 5, 2019
1 parent 1c77a2c commit 70242077ac61b260ac1df1aa486f75a26da8fee6
Showing with 9 additions and 0 deletions.
  1. +6 −0 main/inc/lib/display.lib.php
  2. +3 −0 main/install/configuration.dist.php
@@ -1324,6 +1324,12 @@ public static function grid_js(
// Default row quantity
if (!isset($extra_params['rowList'])) {
$extra_params['rowList'] = [20, 50, 100, 500, 1000, $all_value];
$rowList = api_get_configuration_value('jq_grid_row_list');
if (!empty($rowList) && isset($rowList['options'])) {
$rowList = $rowList['options'];
$rowList[] = $all_value;
}
$extra_params['rowList'] = $rowList;
}
$json = '';
@@ -1087,6 +1087,9 @@
// Teachers cannot delete an exercise/questions, change exercise visibility, download to qti, clean results
// $_configuration['limit_exercise_teacher_access'] = false;
// Changes the row list when using jqgrid
//$_configuration['jq_grid_row_list'] = ['options' => [50, 100, 200, 500]];
// ------ Custom DB changes (keep this at the end)
// Add user activation by confirmation email
// This option prevents the new user to login in the platform if your account is not confirmed via email

0 comments on commit 7024207

Please sign in to comment.
You can’t perform that action at this time.