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

update shared components

This commit is contained in:
Luke Pulverenti 2016-02-22 13:25:45 -05:00
parent 912bd57ca0
commit 39fe608c2d
7 changed files with 122 additions and 62 deletions

View file

@ -0,0 +1,20 @@
define([], function () {
return function (options) {
if (typeof options === 'string') {
options = {
title: '',
text: options
};
}
var result = confirm(options.text);
if (result) {
return Promise.resolve();
} else {
return Promise.reject();
}
};
});