Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
1e9f38a4
Commit
1e9f38a4
authored
Nov 15, 2016
by
Andrew Nicols
Committed by
Dan Poltawski
Nov 15, 2016
Browse files
Merge branch 'MDL-56785-master-fix' of
https://github.com/lameze/moodle
parents
813afc67
c1584e15
Changes
1
Hide whitespace changes
Inline
Side-by-side
user/selector/lib.php
View file @
1e9f38a4
...
...
@@ -624,11 +624,14 @@ abstract class user_selector_base {
$checked
=
''
;
}
$name
=
'userselector_'
.
$name
;
$output
=
'<p><input type="hidden" name="'
.
$name
.
'" value="0" />'
.
// For the benefit of brain-dead IE, the id must be different from the name of the hidden form field above.
// It seems that document.getElementById('frog') in IE will return and element with name="frog".
'<input type="checkbox" id="'
.
$name
.
'id" name="'
.
$name
.
'" value="1"'
.
$checked
.
' /> '
.
'<label for="'
.
$name
.
'id">'
.
$label
.
"</label></p>
\n
"
;
// For the benefit of brain-dead IE, the id must be different from the name of the hidden form field above.
// It seems that document.getElementById('frog') in IE will return and element with name="frog".
$output
=
'<div class="form-check"><input type="hidden" name="'
.
$name
.
'" value="0" />'
.
'<label class="form-check-label" for="'
.
$name
.
'id">'
.
'<input class="form-check-input" type="checkbox" id="'
.
$name
.
'id" name="'
.
$name
.
'" value="1"'
.
$checked
.
' /> '
.
$label
.
"</label>
</div>
\n
"
;
user_preference_allow_ajax_update
(
$name
,
PARAM_BOOL
);
return
$output
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment