Skip to content

Commit 6132809

Browse files
committed
condense
1 parent 5d38ee0 commit 6132809

File tree

4 files changed

+20
-115
lines changed

4 files changed

+20
-115
lines changed

webroot/admin/pi-mgmt.php

Lines changed: 11 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -153,72 +153,25 @@
153153
{
154154
responsive: true,
155155
columns: [
156-
{
157-
// name
158-
responsivePriority: 2,
159-
},
160-
{
161-
// uid
162-
responsivePriority: 1,
163-
},
164-
{
165-
//mail
166-
responsivePriority: 2,
167-
},
168-
{
169-
// requested on
170-
responsivePriority: 2,
171-
},
172-
{
173-
// actions
174-
responsivePriority: 1,
175-
},
156+
{responsivePriority: 2}, // name
157+
{responsivePriority: 1}, // uid
158+
{responsivePriority: 2}, // mail
159+
{responsivePriority: 2}, // requested on
160+
{responsivePriority: 1}, // actions
176161
],
177-
layout: {
178-
topStart: {
179-
buttons: [
180-
{
181-
extend: 'colvis',
182-
columns: ':not(.noVis)',
183-
popoverTitle: 'Column visibility selector'
184-
}
185-
]
186-
}
187-
}
162+
layout: {topStart: {buttons: ['colvis']}}
188163
}
189164
);
190165
$('#pi-table').DataTable(
191166
{
192167
responsive: true,
193168
columns: [
194-
{
195-
// name
196-
responsivePriority: 1,
197-
},
198-
{
199-
// uid
200-
responsivePriority: 1,
201-
},
202-
{
203-
//mail
204-
responsivePriority: 1,
205-
},
206-
{
207-
// members (ideally always hidden)
208-
responsivePriority: 2,
209-
},
169+
{responsivePriority: 1}, // name
170+
{responsivePriority: 1}, // uid
171+
{responsivePriority: 1}, // mail,
172+
{responsivePriority: 2}, // members (ideally always hidden)
210173
],
211-
layout: {
212-
topStart: {
213-
buttons: [
214-
{
215-
extend: 'colvis',
216-
columns: ':not(.noVis)',
217-
popoverTitle: 'Column visibility selector'
218-
}
219-
]
220-
}
221-
}
174+
layout: {topStart: {buttons: ['colvis']}}
222175
}
223176
);
224177
});

webroot/admin/user-mgmt.php

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -93,30 +93,12 @@ class="stripe compact hover"
9393
{
9494
responsive: true,
9595
columns: [
96-
{
97-
// name
98-
responsivePriority: 2,
99-
},
100-
{
101-
// uid
102-
responsivePriority: 1,
103-
},
104-
{
105-
//org
106-
responsivePriority: 2,
107-
},
108-
{
109-
// mail
110-
responsivePriority: 2,
111-
},
112-
{
113-
// groups (ideally always hidden)
114-
responsivePriority: 3,
115-
},
116-
{
117-
// actions
118-
responsivePriority: 1,
119-
},
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
120102
],
121103
layout: {
122104
topStart: {

webroot/panel/groups.php

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -246,17 +246,7 @@
246246
{responsivePriority: 3, visible: false}, // members
247247
{responsivePriority: 1}, // actions
248248
],
249-
layout: {
250-
topStart: {
251-
buttons: [
252-
{
253-
extend: 'colvis',
254-
columns: ':not(.noVis)',
255-
popoverTitle: 'Column visibility selector'
256-
}
257-
]
258-
}
259-
}
249+
layout: {topStart: {buttons: ['colvis']}}
260250
}
261251
);
262252
$('#pi-request-table').DataTable(
@@ -269,17 +259,7 @@
269259
{responsivePriority: 2}, // requested on
270260
{responsivePriority: 1}, // actions
271261
],
272-
layout: {
273-
topStart: {
274-
buttons: [
275-
{
276-
extend: 'colvis',
277-
columns: ':not(.noVis)',
278-
popoverTitle: 'Column visibility selector'
279-
}
280-
]
281-
}
282-
}
262+
layout: {topStart: {buttons: ['colvis']}}
283263
}
284264
);
285265
});

webroot/panel/pi.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,7 @@
143143
{responsivePriority: 2}, // mail
144144
{responsivePriority: 1}, // actions
145145
],
146-
layout: {
147-
topStart: {
148-
buttons: [
149-
{
150-
extend: 'colvis',
151-
columns: ':not(.noVis)',
152-
popoverTitle: 'Column visibility selector'
153-
}
154-
]
155-
}
156-
}
146+
layout: {topStart: {buttons: ['colvis']}}
157147
}
158148
);
159149
});

0 commit comments

Comments
 (0)