kopia lustrzana https://github.com/wagtail/wagtail
Recognise 'multiple' option in ChooserModal as a URL parameter to pass to the modal view
the modal view doesn't do anything with it yetpull/9445/head
rodzic
c66b793957
commit
e94e268ecb
|
@ -326,9 +326,12 @@ class ChooserModal {
|
|||
return this.baseUrl;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
getURLParams(opts) {
|
||||
return {};
|
||||
const urlParams = {};
|
||||
if (opts.multiple) {
|
||||
urlParams.multiple = 1;
|
||||
}
|
||||
return urlParams;
|
||||
}
|
||||
|
||||
open(opts, callback) {
|
||||
|
|
Ładowanie…
Reference in New Issue