1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 19:24:01 +02:00

[ticket/15003] Do not check disabled checkboxes with marklist function

PHPBB3-15003
This commit is contained in:
Matt Friedman
2017-01-13 12:00:31 -08:00
parent 9d7acd1897
commit 366e8583c8
5 changed files with 5 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ function marklist(id, name, state) {
jQuery('#' + id + ' input[type=checkbox][name]').each(function() {
var $this = jQuery(this);
if ($this.attr('name').substr(0, name.length) === name) {
if ($this.attr('name').substr(0, name.length) === name && !$this.prop('disabled')) {
$this.prop('checked', state);
}
});