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'));
24 function selectall(cls) {
25 $('.' + cls).prop('checked', true);
28 function selectnone(cls) {
29 $('.' + cls).prop('checked', false);
37 function confirm_delete(msg, uname){
38 return confirm(msg.format(uname));
41 function details(uid) {
42 $("#user-"+uid+"-detail").toggleClass("hidden");
43 $("#user-"+uid).toggleClass("opened");