mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-20410 - remove set_focuscontrol (bulk commit)
This commit is contained in:
parent
36099bd4d5
commit
377d7b82f6
@ -58,7 +58,6 @@ if ($PAGE->user_allowed_editing() && $adminediting != -1) {
|
||||
}
|
||||
|
||||
/// print header stuff ------------------------------------------------------------
|
||||
$PAGE->set_focuscontrol($focus);
|
||||
if (empty($SITE->fullname)) {
|
||||
$PAGE->set_title($settingspage->visiblename);
|
||||
$PAGE->set_heading($settingspage->visiblename);
|
||||
|
@ -69,8 +69,7 @@ httpsrequired();
|
||||
$PAGE->set_url('/auth/shibboleth/login.php');
|
||||
$PAGE->navbar->add($loginsite);
|
||||
$PAGE->set_title("$site->fullname: $loginsite");
|
||||
$PAGE->set_heading($site->fullname);
|
||||
$PAGE->set_focuscontrol('idp');
|
||||
$PAGE->set_heading($site->fullname);
|
||||
|
||||
echo $OUTPUT->header();
|
||||
include("index_form.html");
|
||||
|
@ -128,7 +128,6 @@ $PAGE->navbar->add($pagetitle);
|
||||
$PAGE->set_title($site->shortname.': '.$strcalendar.': '.$pagetitle);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
$PAGE->set_button($prefsbutton);
|
||||
$PAGE->set_focuscontrol('pw_all');
|
||||
$PAGE->set_pagelayout('standard');
|
||||
|
||||
$renderer = $PAGE->get_renderer('core_calendar');
|
||||
|
@ -148,7 +148,6 @@ if (!empty($course->id)) {
|
||||
|
||||
$PAGE->set_title($title);
|
||||
$PAGE->set_heading($fullname);
|
||||
$PAGE->set_focuscontrol($editform->focus());
|
||||
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading($streditcoursesettings);
|
||||
|
@ -109,7 +109,6 @@ if ($id) {
|
||||
|
||||
$PAGE->set_title($title);
|
||||
$PAGE->set_heading($fullname);
|
||||
$PAGE->set_focuscontrol($mform->focus());
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading($strtitle);
|
||||
|
||||
|
@ -576,8 +576,7 @@ if ($mform->is_cancelled()) {
|
||||
}
|
||||
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->set_title($streditinga);
|
||||
$PAGE->set_focuscontrol($mform->focus());
|
||||
$PAGE->set_title($streditinga);
|
||||
$PAGE->set_cacheable(false);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
|
@ -2132,8 +2132,7 @@ function print_header($title='', $heading='', $navigation='', $focus='',
|
||||
|
||||
$PAGE->set_title($title);
|
||||
$PAGE->set_heading($heading);
|
||||
$PAGE->set_cacheable($cache);
|
||||
$PAGE->set_focuscontrol($focus);
|
||||
$PAGE->set_cacheable($cache);
|
||||
if ($button == '') {
|
||||
$button = ' ';
|
||||
}
|
||||
@ -2198,8 +2197,7 @@ function print_header_simple($title='', $heading='', $navigation='', $focus='',
|
||||
}
|
||||
|
||||
$PAGE->set_title($title);
|
||||
$PAGE->set_heading($heading);
|
||||
$PAGE->set_focuscontrol($focus);
|
||||
$PAGE->set_heading($heading);
|
||||
$PAGE->set_cacheable(true);
|
||||
$PAGE->set_button($button);
|
||||
|
||||
|
@ -154,7 +154,6 @@ if ($mform->is_cancelled()) {
|
||||
/// DISPLAY FORM
|
||||
$PAGE->set_title($strforgotten);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
$PAGE->set_focuscontrol('id_email');
|
||||
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->box(get_string('passwordforgotteninstructions2'), 'generalbox boxwidthnormal boxaligncenter');
|
||||
|
@ -75,7 +75,6 @@ $PAGE->navbar->add($newaccount);
|
||||
|
||||
$PAGE->set_title($newaccount);
|
||||
$PAGE->set_heading($SITE->fullname);
|
||||
$PAGE->set_focuscontrol($mform_signup->focus());
|
||||
|
||||
echo $OUTPUT->header();
|
||||
$mform_signup->display();
|
||||
|
@ -206,7 +206,7 @@ class quiz_access_manager {
|
||||
* @param boolean $unfinished whether the button is to continue an existing attempt,
|
||||
* or start a new one. This affects whether a javascript alert is shown.
|
||||
*/
|
||||
public function print_start_attempt_button($canpreview, $buttontext, $unfinished) {
|
||||
public function print_start_attempt_button($canpreview, $buttontext, $unfinished) {
|
||||
/// Do we need a confirm javascript alert?
|
||||
global $OUTPUT;
|
||||
if ($unfinished) {
|
||||
@ -647,8 +647,7 @@ class password_access_rule extends quiz_access_rule_base {
|
||||
$output = '';
|
||||
|
||||
/// Start the page and print the quiz intro, if any.
|
||||
if (!$return) {
|
||||
$PAGE->set_focuscontrol('quizpassword');
|
||||
if (!$return) {
|
||||
echo $OUTPUT->header();
|
||||
}
|
||||
if (trim(strip_tags($this->_quiz->intro))) {
|
||||
|
@ -94,8 +94,6 @@ abstract class page_wiki {
|
||||
|
||||
// initialise wiki renderer
|
||||
$this->wikioutput = $PAGE->get_renderer('mod_wiki');
|
||||
|
||||
$PAGE->set_focuscontrol('');
|
||||
$PAGE->set_cacheable(true);
|
||||
$PAGE->set_cm($cm);
|
||||
$PAGE->set_activity_record($wiki);
|
||||
|
@ -111,10 +111,6 @@ $PAGE->navbar->add(get_string('participants'), $link);
|
||||
$PAGE->navbar->add($strtitle);
|
||||
$PAGE->set_title($strtitle);
|
||||
$PAGE->set_heading($strtitle);
|
||||
if (empty($messagebody)) {
|
||||
$PAGE->set_focuscontrol('theform.messagebody');
|
||||
}
|
||||
|
||||
echo $OUTPUT->header();
|
||||
// if messaging is disabled on site, we can still allow users with capabilities to send emails instead
|
||||
if (empty($CFG->messaging)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user