mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
merge from dev
This commit is contained in:
parent
1c8f02ce0f
commit
33b01d778c
911 changed files with 34157 additions and 57125 deletions
|
@ -32,12 +32,12 @@
|
|||
var promise3 = ApiClient.getJSON(ApiClient.getUrl("Notifications/Types"));
|
||||
var promise4 = ApiClient.getJSON(ApiClient.getUrl("Notifications/Services"));
|
||||
|
||||
$.when(promise1, promise2, promise3, promise4).done(function (response1, response2, response3, response4) {
|
||||
Promise.all([promise1, promise2, promise3, promise4]).then(function (responses) {
|
||||
|
||||
var users = response1[0];
|
||||
var notificationOptions = response2[0];
|
||||
var types = response3[0];
|
||||
var services = response4[0];
|
||||
var users = responses[0];
|
||||
var notificationOptions = responses[1];
|
||||
var types = responses[2];
|
||||
var services = responses[3];
|
||||
|
||||
var notificationConfig = notificationOptions.Options.filter(function (n) {
|
||||
|
||||
|
@ -102,10 +102,10 @@
|
|||
var promise1 = ApiClient.getNamedConfiguration(notificationsConfigurationKey);
|
||||
var promise2 = ApiClient.getJSON(ApiClient.getUrl("Notifications/Types"));
|
||||
|
||||
$.when(promise1, promise2).done(function (response1, response2) {
|
||||
Promise.all([promise1, promise2]).then(function (responses) {
|
||||
|
||||
var notificationOptions = response1[0];
|
||||
var types = response2[0];
|
||||
var notificationOptions = responses[0];
|
||||
var types = responses[1];
|
||||
|
||||
var notificationConfig = notificationOptions.Options.filter(function (n) {
|
||||
|
||||
|
@ -147,7 +147,7 @@
|
|||
return c.getAttribute('data-itemid');
|
||||
});
|
||||
|
||||
ApiClient.updateNamedConfiguration(notificationsConfigurationKey, notificationOptions).done(function (r) {
|
||||
ApiClient.updateNamedConfiguration(notificationsConfigurationKey, notificationOptions).then(function (r) {
|
||||
|
||||
Dashboard.navigate('notificationsettings.html');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue