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'));
23 function selectall(cls) {
24 $('.' + cls).prop('checked', true);
27 function selectnone(cls) {
28 $('.' + cls).prop('checked', false);