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

fix cinema mode failure

This commit is contained in:
Luke Pulverenti 2015-10-26 12:21:00 -04:00
parent b9ad8322dd
commit 6a162d4001
8 changed files with 41 additions and 8 deletions

View file

@ -301,7 +301,14 @@
if (isViblastStarted) {
_currentTime = mediaElement.currentTime;
viblast('#' + mediaElement.id).stop();
// Sometimes this fails
try {
viblast('#' + mediaElement.id).stop();
}
catch (err) {
Logger.log(err);
}
isViblastStarted = false;
}
}

View file

@ -77,6 +77,13 @@
callback: actionCallback
});
}).fail(function () {
Dashboard.alert({
message: Globalize.translate('ErrorRemovingEmbyConnectAccount')
});
});
@ -102,6 +109,13 @@
callback: actionCallback
}).fail(function () {
Dashboard.alert({
message: Globalize.translate('ErrorAddingEmbyConnectAccount')
});
});
});
} else {

View file

@ -45,7 +45,16 @@
url: apiClient.getUrl('Startup/User'),
dataType: 'json'
}).done(onUpdateUserComplete);
}).done(onUpdateUserComplete).fail(function () {
var msgKey = form.querySelector('#txtConnectUserName').value ? 'ErrorAddingEmbyConnectAccount' : 'DefaultErrorMessage';
Dashboard.alert({
message: Globalize.translate(msgKey)
});
});
}
function onSubmit() {