mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-56431 messaging: Added aria label to filter.
Added an aria label to the course filter in the messaging page.
This commit is contained in:
parent
c5c8f3a6f5
commit
72a5842bd7
4 changed files with 7 additions and 1 deletions
2
message/amd/build/message_area_search.min.js
vendored
2
message/amd/build/message_area_search.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -383,6 +383,9 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/str'
|
|||
this.messageArea.find(SELECTORS.CONTACTSAREA).addClass('searchfilter');
|
||||
this.messageArea.find(SELECTORS.SEARCHFILTERAREA).show();
|
||||
this.messageArea.find(SELECTORS.SEARCHFILTER).html(text);
|
||||
Str.get_string('removecoursefilter', 'message', text).then(function(languagestring) {
|
||||
this.messageArea.find(SELECTORS.SEARCHFILTERAREA).attr('aria-label', languagestring);
|
||||
}.bind(this));
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -394,6 +397,7 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/str'
|
|||
this.messageArea.find(SELECTORS.CONTACTSAREA).removeClass('searchfilter');
|
||||
this.messageArea.find(SELECTORS.SEARCHFILTER).empty();
|
||||
this.messageArea.find(SELECTORS.SEARCHFILTERAREA).hide();
|
||||
this.messageArea.find(SELECTORS.SEARCHFILTERAREA).removeAttr('aria-label');
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue