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

update components

This commit is contained in:
Luke Pulverenti 2016-10-18 01:06:48 -04:00
parent 138611efb5
commit 11615f4399
72 changed files with 829 additions and 623 deletions

View file

@ -1,4 +1,5 @@
define(['appSettings', 'loading', 'apphost', 'iapManager', 'events', 'shell', 'globalize', 'dialogHelper', 'connectionManager', 'layoutManager', 'emby-button'], function (appSettings, loading, appHost, iapManager, events, shell, globalize, dialogHelper, connectionManager, layoutManager) {
'use strict';
var currentDisplayingProductInfos = [];
var currentDisplayingResolve = null;
@ -157,7 +158,7 @@
}, function () {
var unlockableFeatureCacheKey = 'featurepurchased-' + feature;
if (appSettings.get(unlockableFeatureCacheKey) == '1') {
if (appSettings.get(unlockableFeatureCacheKey) === '1') {
return Promise.resolve();
}
@ -173,7 +174,7 @@
return Promise.resolve();
}
if (appSettings.get(unlockableCacheKey) == '1') {
if (appSettings.get(unlockableCacheKey) === '1') {
return Promise.resolve();
}
}
@ -318,7 +319,7 @@
html += '</div>';
}
if (dialogOptions.feature == 'playback') {
if (dialogOptions.feature === 'playback') {
html += '<p>';
html += '<button is="emby-button" type="button" class="raised button-cancel block btnCloseDialog"><span>' + globalize.translate('sharedcomponents#ButtonPlayOneMinute') + '</span></button>';
html += '</p>';
@ -356,7 +357,7 @@
dialogHelper.close(dlg);
};
if (dialogOptions.feature == 'playback') {
if (dialogOptions.feature === 'playback') {
alertText({
text: globalize.translate('sharedcomponents#ThankYouForTryingEnjoyOneMinute'),
title: globalize.translate('sharedcomponents#HeaderTryPlayback')
@ -475,7 +476,7 @@
var featureId = this.getAttribute('data-featureid');
if (this.getAttribute('data-email') == 'true') {
if (this.getAttribute('data-email') === 'true') {
getUserEmail().then(function (email) {
iapManager.beginPurchase(featureId, email);
});
@ -595,7 +596,7 @@
if (resolve && currentDisplayingProductInfos.filter(function (p) {
return product.id == p.id;
return product.id === p.id;
}).length) {