mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-72828 js: get_strings supports jquery objects
This commit is contained in:
parent
f8d28e4ca6
commit
bbe528c1ad
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -408,7 +408,7 @@ function(
|
||||
var pageItems = root.find(SELECTORS.PAGE_ITEM);
|
||||
// We want to request all of the strings at once rather than
|
||||
// one at a time.
|
||||
var stringRequests = pageItems.map(function(index, page) {
|
||||
var stringRequests = pageItems.toArray().map(function(index, page) {
|
||||
page = $(page);
|
||||
var pageNumber = getPageNumber(root, page);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user