Johannes Burk
9 years ago
committed by
test
7 changed files with 83 additions and 27 deletions
@ -0,0 +1 @@ |
|||||
|
define(["jquery"],function(a){return{init:function(){a("#toggleall").on("change",function(){a('input[name="userenrolments[]"]').prop("checked",a("#toggleall").prop("checked"))}),a("#formaction").on("change",function(){a("#enrol_apply_manage_form").submit()})}}}); |
@ -0,0 +1,38 @@ |
|||||
|
// This file is part of Moodle - http://moodle.org/
|
||||
|
//
|
||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||
|
// it under the terms of the GNU General Public License as published by
|
||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||
|
// (at your option) any later version.
|
||||
|
//
|
||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
|
// GNU General Public License for more details.
|
||||
|
//
|
||||
|
// You should have received a copy of the GNU General Public License
|
||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
|
||||
|
/** |
||||
|
* @package enrol_apply |
||||
|
* @copyright 2016 sudile GbR (http://www.sudile.com)
|
||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
|
* @author Johannes Burk <johannes.burk@sudile.com> |
||||
|
*/ |
||||
|
|
||||
|
/** |
||||
|
* @module enrol_apply/manage |
||||
|
*/ |
||||
|
define(['jquery'], function($) { |
||||
|
return { |
||||
|
init: function() { |
||||
|
$('#toggleall').on('change', function() { |
||||
|
$('input[name="userenrolments[]"]').prop('checked', $('#toggleall').prop('checked')); |
||||
|
}); |
||||
|
|
||||
|
$('#formaction').on('change', function() { |
||||
|
$('#enrol_apply_manage_form').submit(); |
||||
|
}); |
||||
|
} |
||||
|
}; |
||||
|
}); |
@ -1,3 +1,11 @@ |
|||||
.enrol_apply_waitinglist_highlight { |
form#enrol_apply_manage_form tr { |
||||
border-left: 6px solid grey; |
border-left: 3px solid transparent; |
||||
|
} |
||||
|
|
||||
|
form#enrol_apply_manage_form tr.enrol_apply_waitinglist_highlight { |
||||
|
border-color: grey; |
||||
|
} |
||||
|
|
||||
|
.formaction { |
||||
|
text-align: center; |
||||
} |
} |
||||
|
Loading…
Reference in new issue