##// END OF EJS Templates
templates: use better variables names in loading ajax data
super-admin -
r5039:5cad06d1 default
parent child Browse files
Show More
@@ -92,8 +92,9 b''
92 );
92 );
93
93
94 // gists list
94 // gists list
95 var gist_data = ${c.data|n};
95 $('#gist_list_table').DataTable({
96 $('#gist_list_table').DataTable({
96 data: ${c.data|n},
97 data: gist_data,
97 dom: 'rtp',
98 dom: 'rtp',
98 pageLength: ${c.visual.dashboard_items},
99 pageLength: ${c.visual.dashboard_items},
99 order: [[ 4, "desc" ]],
100 order: [[ 4, "desc" ]],
@@ -17,9 +17,10 b''
17
17
18 // repo list
18 // repo list
19 $repoListTable = $('#repo_list_table');
19 $repoListTable = $('#repo_list_table');
20 var repos_data = ${c.data|n};
20
21
21 $repoListTable.DataTable({
22 $repoListTable.DataTable({
22 data: ${c.data|n},
23 data: repos_data,
23 dom: 'rtp',
24 dom: 'rtp',
24 pageLength: ${c.visual.admin_grid_items},
25 pageLength: ${c.visual.admin_grid_items},
25 order: [[ 0, "asc" ]],
26 order: [[ 0, "asc" ]],
@@ -28,8 +28,9 b' var api;'
28 row.remove().draw();
28 row.remove().draw();
29 } );
29 } );
30
30
31 var user_groups_data = ${c.user_groups|n};
31 $('#user_group_list_table').DataTable({
32 $('#user_group_list_table').DataTable({
32 data: ${c.user_groups|n},
33 data: user_groups_data,
33 dom: 'rtp',
34 dom: 'rtp',
34 pageLength: ${c.visual.admin_grid_items},
35 pageLength: ${c.visual.admin_grid_items},
35 order: [[ 0, "asc" ]],
36 order: [[ 0, "asc" ]],
@@ -18,8 +18,9 b''
18 // repo list
18 // repo list
19 $repoListTable = $('#repo_list_table');
19 $repoListTable = $('#repo_list_table');
20
20
21 var watched_repos_data = ${c.data|n};
21 $repoListTable.DataTable({
22 $repoListTable.DataTable({
22 data: ${c.data|n},
23 data: watched_repos_data,
23 dom: 'rtp',
24 dom: 'rtp',
24 pageLength: ${c.visual.admin_grid_items},
25 pageLength: ${c.visual.admin_grid_items},
25 order: [[ 0, "asc" ]],
26 order: [[ 0, "asc" ]],
@@ -46,8 +46,9 b' var api;'
46 row.remove().draw();
46 row.remove().draw();
47 } );
47 } );
48
48
49 var groups_data = ${c.groups|n};
49 $('#user_group_list_table').DataTable({
50 $('#user_group_list_table').DataTable({
50 data: ${c.groups|n},
51 data: groups_data,
51 dom: 'rtp',
52 dom: 'rtp',
52 pageLength: ${c.visual.admin_grid_items},
53 pageLength: ${c.visual.admin_grid_items},
53 order: [[ 0, "asc" ]],
54 order: [[ 0, "asc" ]],
@@ -62,9 +62,10 b''
62 $('#obj_count').text(_text);
62 $('#obj_count').text(_text);
63 };
63 };
64
64
65 var bookmarks_data = ${c.data|n};
65 // object list
66 // object list
66 $('#obj_list_table').DataTable({
67 $('#obj_list_table').DataTable({
67 data: ${c.data | n},
68 data: bookmarks_data,
68 dom: 'rtp',
69 dom: 'rtp',
69 pageLength: ${c.visual.dashboard_items},
70 pageLength: ${c.visual.dashboard_items},
70 order: [[ 0, "asc" ]],
71 order: [[ 0, "asc" ]],
@@ -61,9 +61,10 b''
61 $('#obj_count').text(_text);
61 $('#obj_count').text(_text);
62 };
62 };
63
63
64 var branches_data = ${c.data|n};
64 // object list
65 // object list
65 $('#obj_list_table').DataTable({
66 $('#obj_list_table').DataTable({
66 data: ${c.data|n},
67 data: branches_data,
67 dom: 'rtp',
68 dom: 'rtp',
68 pageLength: ${c.visual.dashboard_items},
69 pageLength: ${c.visual.dashboard_items},
69 order: [[ 0, "asc" ]],
70 order: [[ 0, "asc" ]],
@@ -62,9 +62,10 b''
62 $('#obj_count').text(_text);
62 $('#obj_count').text(_text);
63 };
63 };
64
64
65 var tags_data = ${c.data|n};
65 // object list
66 // object list
66 $('#obj_list_table').DataTable({
67 $('#obj_list_table').DataTable({
67 data: ${c.data|n},
68 data: tags_data,
68 dom: 'rtp',
69 dom: 'rtp',
69 pageLength: ${c.visual.dashboard_items},
70 pageLength: ${c.visual.dashboard_items},
70 order: [[ 0, "asc" ]],
71 order: [[ 0, "asc" ]],
General Comments 0
You need to be logged in to leave comments. Login now