MDL-20410 - remove set_focuscontrol (bulk commit)

This commit is contained in:
Rossiani Wijaya 2010-07-01 05:35:27 +00:00
parent 36099bd4d5
commit 377d7b82f6
12 changed files with 6 additions and 23 deletions

View File

@ -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);

View File

@ -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");

View File

@ -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');

View File

@ -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);

View File

@ -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);

View File

@ -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();

View File

@ -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);

View File

@ -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');

View File

@ -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();

View File

@ -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))) {

View File

@ -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);

View File

@ -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)) {