mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add m3u url to sat page
This commit is contained in:
parent
0bd0cc2719
commit
f9963247df
15 changed files with 70 additions and 47 deletions
|
@ -227,8 +227,15 @@ componentHandler = (function() {
|
|||
'Unable to find a registered component for the given class.');
|
||||
}
|
||||
|
||||
var ev = document.createEvent('Events');
|
||||
ev.initEvent('mdl-componentupgraded', true, true);
|
||||
var ev;
|
||||
if ('CustomEvent' in window && typeof window.CustomEvent === 'function') {
|
||||
ev = new Event('mdl-componentupgraded', {
|
||||
'bubbles': true, 'cancelable': false
|
||||
});
|
||||
} else {
|
||||
ev = document.createEvent('Events');
|
||||
ev.initEvent('mdl-componentupgraded', true, true);
|
||||
}
|
||||
element.dispatchEvent(ev);
|
||||
}
|
||||
}
|
||||
|
@ -351,9 +358,15 @@ componentHandler = (function() {
|
|||
upgrades.splice(componentPlace, 1);
|
||||
component.element_.setAttribute('data-upgraded', upgrades.join(','));
|
||||
|
||||
var ev = document.createEvent('Events');
|
||||
ev.initEvent('mdl-componentdowngraded', true, true);
|
||||
component.element_.dispatchEvent(ev);
|
||||
var ev;
|
||||
if ('CustomEvent' in window && typeof window.CustomEvent === 'function') {
|
||||
ev = new Event('mdl-componentdowngraded', {
|
||||
'bubbles': true, 'cancelable': false
|
||||
});
|
||||
} else {
|
||||
ev = document.createEvent('Events');
|
||||
ev.initEvent('mdl-componentdowngraded', true, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue