MDL-65254 core_message: Fix going back to message view drawer search

Add the route namespace to description function in message drawer view search.
This commit is contained in:
cescobedo 2019-04-05 10:34:18 +02:00
parent 280cfdf05c
commit 3118db5d66
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -955,10 +955,11 @@ function(
/**
* String describing this page used for aria-labels.
*
* @param {string} namespace The route namespace.
* @param {Object} header Contacts header container element.
* @return {Object} jQuery promise
*/
var description = function(header) {
var description = function(namespace, header) {
var searchInput = getSearchInput(header);
var searchText = searchInput.val().trim();
return Str.get_string('messagedrawerviewsearch', 'core_message', searchText);