mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
removed folder sync
This commit is contained in:
parent
7f32bcec1c
commit
bfc38bae5a
2 changed files with 23 additions and 7 deletions
|
@ -590,7 +590,7 @@
|
|||
callback();
|
||||
}
|
||||
} else {
|
||||
showNoCompatibleStreamError();
|
||||
showPlaybackInfoErrorMessage('NoCompatibleStream');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -612,7 +612,7 @@
|
|||
callback();
|
||||
}
|
||||
} else {
|
||||
showNoCompatibleStreamError();
|
||||
showPlaybackInfoErrorMessage('NoCompatibleStream');
|
||||
}
|
||||
|
||||
} else {
|
||||
|
@ -622,10 +622,26 @@
|
|||
|
||||
function validatePlaybackInfoResult(result) {
|
||||
|
||||
if (result.ErrorCode) {
|
||||
|
||||
showPlaybackInfoErrorMessage(result.ErrorCode);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function showNoCompatibleStreamError() {
|
||||
function showPlaybackInfoErrorMessage(errorCode) {
|
||||
|
||||
// This timeout is messy, but if jqm is in the act of hiding a popup, it will not show a new one
|
||||
// If we're coming from the popup play menu, this will be a problem
|
||||
|
||||
setTimeout(function () {
|
||||
Dashboard.alert({
|
||||
message: Globalize.translate('MessagePlaybackError' + errorCode),
|
||||
title: Globalize.translate('HeaderPlaybackError')
|
||||
});
|
||||
}, 300);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue