1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update alerts

This commit is contained in:
Luke Pulverenti 2016-02-26 15:29:27 -05:00
parent d74e699177
commit 3e161d7edb
11 changed files with 143 additions and 79 deletions

View file

@ -0,0 +1,22 @@
define([], function () {
function replaceAll(str, find, replace) {
return str.split(find).join(replace);
}
return function (options) {
if (typeof options === 'string') {
options = {
text: options
};
}
var text = replaceAll(options.text || '', '<br/>', '\n');
alert(text);
return Promise.resolve();
};
});