mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #762 - Marking unwatched doesn't update display
This commit is contained in:
parent
5bec78f61f
commit
41825781d2
49 changed files with 443 additions and 505 deletions
45
dashboard-ui/scripts/branding.js
Normal file
45
dashboard-ui/scripts/branding.js
Normal file
|
@ -0,0 +1,45 @@
|
|||
(function ($, document, window) {
|
||||
|
||||
var brandingConfigKey = "branding";
|
||||
|
||||
function loadPage(page, config) {
|
||||
|
||||
$('#txtLoginDisclaimer', page).val(config.LoginDisclaimer || '');
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
}
|
||||
|
||||
$(document).on('pageshow', "#dashboardBrandingPage", function () {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var page = this;
|
||||
|
||||
ApiClient.getNamedConfiguration(brandingConfigKey).done(function (config) {
|
||||
|
||||
loadPage(page, config);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
window.BrandingPage = {
|
||||
|
||||
onSubmit: function () {
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var form = this;
|
||||
|
||||
ApiClient.getNamedConfiguration(brandingConfigKey).done(function (config) {
|
||||
|
||||
config.LoginDisclaimer = $('#txtLoginDisclaimer', form).val();
|
||||
|
||||
ApiClient.updateNamedConfiguration(brandingConfigKey, config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||
});
|
||||
|
||||
// Disable default form submission
|
||||
return false;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
})(jQuery, document, window);
|
Loading…
Add table
Add a link
Reference in a new issue