2 * @brief Javascript for the admin module
5 $('body').on('click', '.selectall', function() {
6 selectall($(this).data('selectAll'));
8 $('body').on('click', '.selectnone', function() {
9 selectnone($(this).data('selectNone'));
12 $('body').on('change', 'input[type=checkbox].select', function() {
14 if ($this.prop('checked')) {
15 selectall($this.data('selectClass'));
16 $this.attr('title', $this.data('selectNone'));
18 selectnone($this.data('selectClass'));
19 $this.attr('title', $this.data('selectAll'));
25 function selectall(cls) {
26 $('.' + cls).prop('checked', true);
29 function selectnone(cls) {
30 $('.' + cls).prop('checked', false);
36 function confirm_delete(uname){
37 return confirm( "{{$confirm_delete}}".format(uname));
39 function confirm_delete_multi(){
40 return confirm("{{$confirm_delete_multi}}");
42 function details(uid) {
43 $("#user-"+uid+"-detail").toggleClass("hidden");
44 $("#user-"+uid).toggleClass("opened");