jellyfin-web/dashboard-ui/cordova/sharingwidget.js

31 lines
721 B
JavaScript
Raw Normal View History

2015-07-01 22:08:05 -07:00
(function () {
function showMenu(options, successCallback, cancelCallback) {
Dashboard.confirm(Globalize.translate('ButtonShareHelp'), Globalize.translate('HeaderConfirm'), function (confirmed) {
if (!confirmed) {
cancelCallback(options);
return;
}
var shareInfo = options.share;
window.plugins.socialsharing.share(shareInfo.Overview, shareInfo.Name, shareInfo.ImageUrl, shareInfo.Url, function () {
successCallback(options);
}, function () {
cancelCallback(options);
});
});
}
window.SharingWidget = {
showMenu: showMenu
};
})();