mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
fix ie hang on library setup
This commit is contained in:
parent
3d458f8076
commit
3d0d3247fd
@ -4,7 +4,7 @@
|
||||
<title>${TitlePlugins}</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="addPluginPage" data-role="page" class="page type-interior pluginConfigurationPage" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Plugins" data-require="scripts/registrationservices,scripts/ratingdialog,scripts/addpluginpage,fontawesome">
|
||||
<div id="addPluginPage" data-role="page" class="page type-interior pluginConfigurationPage" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Plugins" data-require="scripts/registrationservices,scripts/ratingdialog,scripts/addpluginpage">
|
||||
|
||||
<div data-role="content">
|
||||
<div class="content-primary">
|
||||
@ -86,9 +86,11 @@
|
||||
<input type="hidden" id="featureId" name="item_number" value="">
|
||||
<input type="hidden" name="notify_url" value="http://mb3admin.com/admin/service/services/ppipn.php">
|
||||
<input type="hidden" name="return" id="paypalReturnUrl" value="#">
|
||||
<button type="submit" id="ppButton" data-role="none" class="btn" style="background-color:#179BD7">
|
||||
<i class="fa fa-paypal"></i>
|
||||
<span>${RegisterWithPayPal}</span>
|
||||
<button type="submit" id="ppButton" class="clearButton">
|
||||
<paper-button raised class="block" style="background-color: #179BD7;color:#fff;">
|
||||
<iron-icon icon="check"></iron-icon>
|
||||
<span>${RegisterWithPayPal}</span>
|
||||
</paper-button>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
@ -55,7 +55,10 @@
|
||||
|
||||
html += '<paper-icon-item role="menuitem" class="lnkPath">';
|
||||
|
||||
html += '<paper-fab class="listAvatar" style="background:#52B54B;" icon="folder" item-icon></paper-fab>';
|
||||
if (!$.browser.msie) {
|
||||
// Not sure why, but this is causing the entire browser to hang
|
||||
html += '<paper-fab class="listAvatar" style="background:#52B54B;" icon="folder" item-icon></paper-fab>';
|
||||
}
|
||||
|
||||
html += '<paper-item-body>';
|
||||
html += path;
|
||||
|
@ -1032,6 +1032,8 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
|
||||
right: 5px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border-radius: 50%;
|
||||
color: #fff;
|
||||
background: rgb(82, 181, 75);
|
||||
@ -1039,7 +1041,6 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
|
||||
line-height: 21px;
|
||||
line-height: initial;
|
||||
font-weight: 500;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.mediaSourceIndicator {
|
||||
|
@ -3,5 +3,5 @@
|
||||
}
|
||||
|
||||
paper-fab.keyboard-focus.paper-fab-0 {
|
||||
background: #444;
|
||||
/*background: #444;*/
|
||||
}
|
33
dashboard-ui/devices/ie/ie.js
Normal file
33
dashboard-ui/devices/ie/ie.js
Normal file
@ -0,0 +1,33 @@
|
||||
(function () {
|
||||
|
||||
Dashboard.importCss('devices/ie/ie.css');
|
||||
|
||||
function onPageShow() {
|
||||
|
||||
var page = this;
|
||||
|
||||
if (navigator.userAgent.toLowerCase().indexOf('Windows NT 10.') != -1) {
|
||||
|
||||
var expectedValue = new Date().toDateString();
|
||||
if (appStorage.getItem("ieswitchtoedge") == expectedValue) {
|
||||
return;
|
||||
}
|
||||
|
||||
appStorage.setItem("ieswitchtoedge", expectedValue);
|
||||
|
||||
var msg = Globalize.translate('MessageTryMicrosoftEdge');
|
||||
|
||||
msg += "<br/><br/>";
|
||||
msg += '<a href="https://www.microsoft.com/en-us/windows/microsoft-edge" target="_blank">' + Globalize.translate('ButtonLearnMore') + '</a>';
|
||||
|
||||
Dashboard.alert({
|
||||
message: msg,
|
||||
title: Globalize.translate('HeaderTryMicrosoftEdge')
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
pageClassOn('pageshow', "libraryPage", onPageShow);
|
||||
pageClassOn('pageshow', "type-interior", onPageShow);
|
||||
|
||||
})();
|
@ -2,7 +2,7 @@
|
||||
|
||||
function init(page, type, providerId) {
|
||||
|
||||
var url = 'tvproviders/' + type + '.js';
|
||||
var url = 'components/tvproviders/' + type + '.js';
|
||||
|
||||
require([url], function (factory) {
|
||||
|
||||
@ -15,10 +15,10 @@
|
||||
|
||||
function loadTemplate(page, type, providerId) {
|
||||
|
||||
ApiClient.ajax({
|
||||
HttpClient.send({
|
||||
|
||||
type: 'GET',
|
||||
url: 'tvproviders/' + type + '.template.html'
|
||||
url: 'components/tvproviders/' + type + '.template.html'
|
||||
|
||||
}).done(function (html) {
|
||||
|
||||
|
@ -1967,15 +1967,15 @@ var AppInfo = {};
|
||||
function onDocumentReady() {
|
||||
|
||||
if ($.browser.msie) {
|
||||
Dashboard.importCss('css/ie.css');
|
||||
require(['devices/ie/ie']);
|
||||
}
|
||||
|
||||
// Do these now to prevent a flash of content
|
||||
if (AppInfo.isNativeApp) {
|
||||
if ($.browser.android) {
|
||||
Dashboard.importCss('themes/android.css');
|
||||
Dashboard.importCss('devices/android.css');
|
||||
} else if ($.browser.safari) {
|
||||
Dashboard.importCss('themes/ios.css');
|
||||
Dashboard.importCss('devices/ios/ios.css');
|
||||
}
|
||||
} else {
|
||||
loadTheme();
|
||||
|
@ -909,5 +909,7 @@
|
||||
"ButtonAddMediaLibrary": "Add Media Library",
|
||||
"ButtonManageFolders": "Manage folders",
|
||||
"HeaderTryDragAndDrop": "Try Drag and Drop",
|
||||
"TryDragAndDropMessage": "To re-arrange playlist items, just drag and drop. Try it!"
|
||||
"TryDragAndDropMessage": "To re-arrange playlist items, just drag and drop. Try it!",
|
||||
"HeaderTryMicrosoftEdge": "Try Microsoft Edge",
|
||||
"MessageTryMicrosoftEdge": "For a better experience on Windows 10, try the new Microsoft Edge Browser."
|
||||
}
|
@ -919,5 +919,7 @@
|
||||
"ButtonAddMediaLibrary": "Add Media Library",
|
||||
"ButtonManageFolders": "Manage folders",
|
||||
"HeaderTryDragAndDrop": "Try Drag and Drop",
|
||||
"TryDragAndDropMessage": "To re-arrange playlist items, just drag and drop. Try it!"
|
||||
"TryDragAndDropMessage": "To re-arrange playlist items, just drag and drop. Try it!",
|
||||
"HeaderTryMicrosoftEdge": "Try Microsoft Edge",
|
||||
"MessageTryMicrosoftEdge": "For a better experience on Windows 10, try the new Microsoft Edge Browser."
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user