Skip to content

Commit cabe770

Browse files
committed
Internal: Remove api_get_jqgrid_js function
1 parent 8019350 commit cabe770

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+0
-92
lines changed

public/main/admin/career_dashboard.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818

1919
$this_section = SECTION_PLATFORM_ADMIN;
2020

21-
//Adds the JS needed to use the jqgrid
22-
$htmlHeadXtra[] = api_get_jqgrid_js();
23-
2421
// setting breadcrumbs
2522
$interbreadcrumb[] = [
2623
'url' => 'index.php',

public/main/admin/careers.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
$allowCareer = ('true' === api_get_setting('session.allow_session_admin_read_careers'));
1313
api_protect_admin_script($allowCareer);
1414

15-
// Add the JS needed to use the jqgrid
16-
$htmlHeadXtra[] = api_get_jqgrid_js();
17-
1815
// setting breadcrumbs
1916
$interbreadcrumb[] = [
2017
'url' => 'index.php',

public/main/admin/extra_field_options.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212

1313
api_protect_admin_script();
1414

15-
//Add the JS needed to use the jqgrid
16-
$htmlHeadXtra[] = api_get_jqgrid_js();
17-
1815
// setting breadcrumbs
1916
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('Administration')];
2017

public/main/admin/extra_fields.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414

1515
api_protect_admin_script();
1616

17-
//Add the JS needed to use the jqgrid
18-
$htmlHeadXtra[] = api_get_jqgrid_js();
19-
2017
// setting breadcrumbs
2118
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('Administration')];
2219

public/main/admin/grade_models.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
api_not_allowed(true);
1616
}
1717

18-
//Add the JS needed to use the jqgrid
19-
$htmlHeadXtra[] = api_get_jqgrid_js();
20-
2118
// setting breadcrumbs
2219
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('Administration')];
2320

public/main/admin/promotions.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111

1212
api_protect_admin_script();
1313

14-
//Adds the JS needed to use the jqgrid
15-
$htmlHeadXtra[] = api_get_jqgrid_js();
16-
1714
// setting breadcrumbs
1815
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('Administration')];
1916
$interbreadcrumb[] = ['url' => 'career_dashboard.php', 'name' => get_lang('Careers and promotions')];

public/main/admin/statistics/index.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,6 @@
321321
}
322322
}
323323

324-
if ('user_session' === $report) {
325-
$htmlHeadXtra[] = api_get_jqgrid_js();
326-
}
327-
328324
if (isset($_GET['export'])) {
329325
ob_start();
330326
}

public/main/admin/usergroup_users.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
$calendarPlugin = LearningCalendarPlugin::create();
2626
}
2727

28-
// Add the JS needed to use the jqgrid
29-
$htmlHeadXtra[] = api_get_jqgrid_js();
3028
$action = isset($_GET['action']) ? Security::remove_XSS($_GET['action']) : null;
3129
$userId = isset($_GET['user_id']) ? (int) $_GET['user_id'] : 0;
3230
$calendarId = isset($_REQUEST['calendar_id']) ? (int) $_REQUEST['calendar_id'] : 0;

public/main/admin/usergroups.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
$usergroup = new UserGroupModel();
1616
$usergroup->protectScript();
1717

18-
// Add the JS needed to use the jqgrid
19-
$htmlHeadXtra[] = api_get_jqgrid_js();
20-
2118
// setting breadcrumbs
2219
$action = isset($_GET['action']) ? Security::remove_XSS($_GET['action']) : '';
2320
$userGroupId = isset($_GET['id']) ? (int) $_GET['id'] : 0;

public/main/announcements/announcements.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@
154154

155155
break;
156156
case 'list':
157-
$htmlHeadXtra[] = api_get_jqgrid_js();
158-
159157
$searchForm = new FormValidator(
160158
'search_simple',
161159
'post',

0 commit comments

Comments
 (0)