improve compatibility view error message

This commit is contained in:
Luke Pulverenti 2013-10-18 15:47:57 -04:00
parent 707f6ab48b
commit 7e34533cae
8 changed files with 39 additions and 27 deletions

View File

@ -677,10 +677,6 @@ a.itemTag:hover {
text-align: center; text-align: center;
} }
.timelineItemsContainer {
text-align: left;
}
@media all and (min-width: 1200px) { @media all and (min-width: 1200px) {
.scenePosterViewItem img { .scenePosterViewItem img {

View File

@ -36,6 +36,9 @@
<label for="chkRecursive">Refresh child items</label> <label for="chkRecursive">Refresh child items</label>
<input type="checkbox" id="chkRecursive" name="chkRecursive" data-mini="true" checked="checked" data-inline="true" /> <input type="checkbox" id="chkRecursive" name="chkRecursive" data-mini="true" checked="checked" data-inline="true" />
</div> </div>
<div id="fldDelete" style="vertical-align: bottom;">
<button id="btnDelete" type="button" data-icon="delete" data-mini="true" data-theme="a" data-inline="true">Delete</button>
</div>
<div style="margin: .5em 0 1em;"> <div style="margin: .5em 0 1em;">
<div class="fieldDescription">A refresh will cause internet metadata to be re-downloaded (if enabled, and dependent on metadata settings).</div> <div class="fieldDescription">A refresh will cause internet metadata to be re-downloaded (if enabled, and dependent on metadata settings).</div>
</div> </div>

View File

@ -53,10 +53,10 @@
<select id="selectCollectionType" name="selectCollectionType"></select> <select id="selectCollectionType" name="selectCollectionType"></select>
</p> </p>
<p class="collectionTypeFieldDescription fieldDescription"> <p class="collectionTypeFieldDescription">
Anything unlisted should be classified as general or mixed content. Anything unlisted should be classified as general or mixed content.
</p> </p>
<p class="collectionTypeFieldDescription fieldDescription"> <p class="collectionTypeFieldDescription">
* Requires the use of a plugin, e.g. GameBrowser or MB Photos. * Requires the use of a plugin, e.g. GameBrowser or MB Photos.
</p> </p>

View File

@ -9,15 +9,6 @@
return true; return true;
} }
if (!window.WebSocket) {
alert("This browser does not support web sockets. For a better experience, try a newer browser such as Chrome (android, desktop), Firefox, IE10, Safari (iOS) or Opera.");
}
if (!IsStorageEnabled()) {
alert("This browser does not support local storage or is running in private mode. For a better experience, try a newer browser such as Chrome (android, desktop), Firefox, IE10, Safari (iOS) or Opera.");
}
// Array Remove - By John Resig (MIT Licensed) // Array Remove - By John Resig (MIT Licensed)
Array.prototype.remove = function (from, to) { Array.prototype.remove = function (from, to) {
var rest = this.slice((to || from) + 1 || this.length); var rest = this.slice((to || from) + 1 || this.length);

View File

@ -204,11 +204,13 @@
if (showCollectionType) { if (showCollectionType) {
$('#fldCollectionType', popup).show(); $('#fldCollectionType', popup).show();
$('#selectCollectionType', popup).attr('required', 'required').selectmenu('refresh');
} else { } else {
$('#fldCollectionType', popup).hide(); $('#fldCollectionType', popup).hide();
$('#selectCollectionType', popup).removeAttr('required').selectmenu('refresh');
} }
$('#selectCollectionType', popup).html(MediaLibraryPage.getCollectionTypeOptionsHtml()).selectmenu('refresh'); $('#selectCollectionType', popup).html(MediaLibraryPage.getCollectionTypeOptionsHtml()).val('').selectmenu('refresh');
popup.on("popupafteropen", function () { popup.on("popupafteropen", function () {
$('#textEntryForm input:first', this).focus(); $('#textEntryForm input:first', this).focus();
@ -222,7 +224,15 @@
if (callback) { if (callback) {
if (showCollectionType) { if (showCollectionType) {
callback($('#txtValue', popup).val(), $('#selectCollectionType', popup).val());
var collectionType = $('#selectCollectionType', popup).val();
// The server expects an empty value for mixed
if (collectionType == 'mixed') {
collectionType = '';
}
callback($('#txtValue', popup).val(), collectionType);
} else { } else {
callback($('#txtValue', popup).val()); callback($('#txtValue', popup).val());
} }
@ -246,19 +256,19 @@
return [ return [
{ name: "General or mixed content", value: "" }, { name: "", value: "" },
{ name: "Adult videos", value: "adultvideos" }, { name: "Movies", value: "movies" },
{ name: "Music", value: "music" },
{ name: "TV shows", value: "tvshows" },
{ name: "Books*", value: "books" }, { name: "Books*", value: "books" },
{ name: "Box sets", value: "boxsets" }, { name: "Box sets", value: "boxsets" },
{ name: "Games*", value: "games" }, { name: "Games*", value: "games" },
{ name: "Home videos", value: "homevideos" }, { name: "Home videos", value: "homevideos" },
{ name: "Movies", value: "movies" },
{ name: "Music", value: "music" },
{ name: "Music videos", value: "musicvideos" }, { name: "Music videos", value: "musicvideos" },
{ name: "Photos*", value: "photos" }, { name: "Photos*", value: "photos" },
{ name: "Trailers", value: "trailers" }, { name: "Trailers", value: "trailers" },
{ name: "TV shows", value: "tvshows" } { name: "Adult videos", value: "adultvideos" },
{ name: "General or mixed content", value: "mixed" }
]; ];
}, },

View File

@ -1113,10 +1113,18 @@ var Dashboard = {
return parts.join(':'); return parts.join(':');
} }
}; };
if (!window.WebSocket) {
alert("This browser does not support web sockets. For a better experience, try a newer browser such as Chrome (android, desktop), Firefox, IE10, Safari (iOS) or Opera.");
}
if (!IsStorageEnabled()) {
alert("This browser does not support local storage or is running in private mode. For a better experience, try a newer browser such as Chrome (android, desktop), Firefox, IE10, Safari (iOS) or Opera.");
}
var ApiClient = MediaBrowser.ApiClient.create("Dashboard", window.dashboardVersion); var ApiClient = MediaBrowser.ApiClient.create("Dashboard", window.dashboardVersion);
$(ApiClient).on("websocketmessage", Dashboard.onWebSocketMessageReceived); $(ApiClient).on("websocketmessage", Dashboard.onWebSocketMessageReceived);

View File

@ -25,6 +25,10 @@ THE SOFTWARE.
(function() { (function() {
if (navigator.userAgent.toLowerCase().indexOf('firefox') == -1) {
return;
}
// test for native support // test for native support
var test = document.createElement('input'); var test = document.createElement('input');
try { try {

View File

@ -43,10 +43,10 @@
<select id="selectCollectionType" name="selectCollectionType"></select> <select id="selectCollectionType" name="selectCollectionType"></select>
</p> </p>
<p class="collectionTypeFieldDescription fieldDescription"> <p class="collectionTypeFieldDescription">
Anything unlisted should be classified as general or mixed content. Anything unlisted should be classified as general or mixed content.
</p> </p>
<p class="collectionTypeFieldDescription fieldDescription"> <p class="collectionTypeFieldDescription">
* Requires the use of a plugin, e.g. GameBrowser or MB Photos. * Requires the use of a plugin, e.g. GameBrowser or MB Photos.
</p> </p>