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

update toast

This commit is contained in:
Luke Pulverenti 2016-02-25 01:38:12 -05:00
parent b3d91930d3
commit 91cedefe29
39 changed files with 165 additions and 67 deletions

View file

@ -4,6 +4,12 @@ define(['paper-toast'], function () {
return function (options) {
if (typeof options === 'string') {
options = {
text: options
};
}
var elem = document.createElement("paper-toast");
elem.setAttribute('text', options.text);
elem.id = 'toast' + (toastId++);