Skip to content

Commit a205010

Browse files
committed
dedent
1 parent 9c25c69 commit a205010

File tree

4 files changed

+65
-77
lines changed

4 files changed

+65
-77
lines changed

webroot/admin/pi-mgmt.php

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -149,31 +149,27 @@
149149
</div>
150150
<script>
151151
$(document).ready(() => {
152-
$('#pi-request-table').DataTable(
153-
{
154-
responsive: true,
155-
columns: [
156-
{responsivePriority: 2}, // name
157-
{responsivePriority: 1}, // uid
158-
{responsivePriority: 2}, // mail
159-
{responsivePriority: 2}, // requested on
160-
{responsivePriority: 1}, // actions
161-
],
162-
layout: {topStart: {buttons: ['colvis']}}
163-
}
164-
);
165-
$('#pi-table').DataTable(
166-
{
167-
responsive: true,
168-
columns: [
169-
{responsivePriority: 1}, // name
170-
{responsivePriority: 1}, // uid
171-
{responsivePriority: 1}, // mail,
172-
{responsivePriority: 2}, // members (ideally always hidden)
173-
],
174-
layout: {topStart: {buttons: ['colvis']}}
175-
}
176-
);
152+
$('#pi-request-table').DataTable({
153+
responsive: true,
154+
columns: [
155+
{responsivePriority: 2}, // name
156+
{responsivePriority: 1}, // uid
157+
{responsivePriority: 2}, // mail
158+
{responsivePriority: 2}, // requested on
159+
{responsivePriority: 1}, // actions
160+
],
161+
layout: {topStart: {buttons: ['colvis']}}
162+
});
163+
$('#pi-table').DataTable({
164+
responsive: true,
165+
columns: [
166+
{responsivePriority: 1}, // name
167+
{responsivePriority: 1}, // uid
168+
{responsivePriority: 1}, // mail,
169+
{responsivePriority: 2}, // members (ideally always hidden)
170+
],
171+
layout: {topStart: {buttons: ['colvis']}}
172+
});
177173
});
178174
</script>
179175

webroot/admin/user-mgmt.php

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,18 @@ class="stripe compact hover"
8989

9090
<script>
9191
$(document).ready(() => {
92-
$('#user-table').DataTable(
93-
{
94-
responsive: true,
95-
columns: [
96-
{responsivePriority: 2}, // name
97-
{responsivePriority: 1}, // uid
98-
{responsivePriority: 2}, //org,
99-
{responsivePriority: 2}, // mail
100-
{responsivePriority: 3}, // groups (ideally always hidden)
101-
{responsivePriority: 1}, // actions
102-
],
103-
layout: {topStart: {buttons: ['colvis']}}
104-
}
105-
);
92+
$('#user-table').DataTable({
93+
responsive: true,
94+
columns: [
95+
{responsivePriority: 2}, // name
96+
{responsivePriority: 1}, // uid
97+
{responsivePriority: 2}, //org,
98+
{responsivePriority: 2}, // mail
99+
{responsivePriority: 3}, // groups (ideally always hidden)
100+
{responsivePriority: 1}, // actions
101+
],
102+
layout: {topStart: {buttons: ['colvis']}}
103+
});
106104
});
107105
</script>
108106
<?php require $LOC_FOOTER; ?>

webroot/panel/groups.php

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -236,32 +236,28 @@
236236

237237
<script>
238238
$(document).ready(() => {
239-
$('#pi-table').DataTable(
240-
{
241-
responsive: true,
242-
columns: [
243-
{responsivePriority: 1}, // name
244-
{responsivePriority: 2}, // gid
245-
{responsivePriority: 2}, // PI mail
246-
{responsivePriority: 3, visible: false}, // members
247-
{responsivePriority: 1}, // actions
248-
],
249-
layout: {topStart: {buttons: ['colvis']}}
250-
}
251-
);
252-
$('#pi-request-table').DataTable(
253-
{
254-
responsive: true,
255-
columns: [
256-
{responsivePriority: 1}, // owner name
257-
{responsivePriority: 2}, // gid
258-
{responsivePriority: 2}, // PI mail
259-
{responsivePriority: 2}, // requested on
260-
{responsivePriority: 1}, // actions
261-
],
262-
layout: {topStart: {buttons: ['colvis']}}
263-
}
264-
);
239+
$('#pi-table').DataTable({
240+
responsive: true,
241+
columns: [
242+
{responsivePriority: 1}, // name
243+
{responsivePriority: 2}, // gid
244+
{responsivePriority: 2}, // PI mail
245+
{responsivePriority: 3, visible: false}, // members
246+
{responsivePriority: 1}, // actions
247+
],
248+
layout: {topStart: {buttons: ['colvis']}}
249+
});
250+
$('#pi-request-table').DataTable({
251+
responsive: true,
252+
columns: [
253+
{responsivePriority: 1}, // owner name
254+
{responsivePriority: 2}, // gid
255+
{responsivePriority: 2}, // PI mail
256+
{responsivePriority: 2}, // requested on
257+
{responsivePriority: 1}, // actions
258+
],
259+
layout: {topStart: {buttons: ['colvis']}}
260+
});
265261
});
266262
</script>
267263

webroot/panel/pi.php

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,16 @@
134134

135135
<script>
136136
$(document).ready(() => {
137-
$('#users-table').DataTable(
138-
{
139-
responsive: true,
140-
columns: [
141-
{responsivePriority: 2}, // name
142-
{responsivePriority: 1}, // username
143-
{responsivePriority: 2}, // mail
144-
{responsivePriority: 1}, // actions
145-
],
146-
layout: {topStart: {buttons: ['colvis']}}
147-
}
148-
);
137+
$('#users-table').DataTable({
138+
responsive: true,
139+
columns: [
140+
{responsivePriority: 2}, // name
141+
{responsivePriority: 1}, // username
142+
{responsivePriority: 2}, // mail
143+
{responsivePriority: 1}, // actions
144+
],
145+
layout: {topStart: {buttons: ['colvis']}}
146+
});
149147
});
150148
</script>
151149

0 commit comments

Comments
 (0)