mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
47a5078596
commit
ecbff1ca26
12 changed files with 280 additions and 144 deletions
|
@ -1,5 +1,10 @@
|
|||
define([], function () {
|
||||
|
||||
function replaceAll(str, find, replace) {
|
||||
|
||||
return str.split(find).join(replace);
|
||||
}
|
||||
|
||||
return function (options) {
|
||||
|
||||
if (typeof options === 'string') {
|
||||
|
@ -9,7 +14,9 @@ define([], function () {
|
|||
};
|
||||
}
|
||||
|
||||
var result = prompt(options.label || '', options.text || '');
|
||||
var label = replaceAll(options.label || '', '<br/>', '\n');
|
||||
|
||||
var result = prompt(label, options.text || '');
|
||||
|
||||
if (result) {
|
||||
return Promise.resolve(result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue