Commit 12439625 authored by echel0n's avatar echel0n
Browse files

Fixed file browser modal

parent 24b47510
# Changelog
- * c278bfd - 2018-07-26: Pre-Release v9.3.56.dev4
- * 774481c - 2018-07-27: Fixed file browser modal
- * 24b4751 - 2018-07-26: Pre-Release v9.3.56.dev4
- * 334b7c7 - 2018-07-26: Misc JS code fixes
- * 96a1978 - 2018-07-26: Fixed IMDb star ratings for display show view
- * 9c41f4b - 2018-07-26: Fixed genre row alignment for display show view Fixed small poster sizing for shows view
......
......@@ -711,6 +711,7 @@ $(document).ready(function ($) {
SICKRAGE.browser.browse(ui.item.value, endpoint, includeFiles, fileTypes);
});
list = $('<div class="list-group">').appendTo(SICKRAGE.browser.fileBrowserDialog.find('.modal-body'));
$.each(data, function (i, entry) {
if (entry.isFile && fileTypes &&
......@@ -725,12 +726,13 @@ $(document).ready(function ($) {
SICKRAGE.browser.browse(entry.path, endpoint, includeFiles, fileTypes);
}
}).text(entry.name);
if (entry.isImage) {
link.prepend('<span class="fas fa-file-image ml-1"></span>');
link.prepend('<span class="fas fa-file-image ml-1 mr-1"></span>');
} else if (entry.isFile) {
link.prepend('<span class="fas fa-file ml-1"></span>');
link.prepend('<span class="fas fa-file ml-1 mr-1"></span>');
} else {
link.prepend('<span class="fas fa-folder ml-1"></span>')
link.prepend('<span class="fas fa-folder ml-1 mr-1"></span>')
.on('mouseenter', function () {
$('span', this).addClass('fa-folder-open');
})
......@@ -740,7 +742,7 @@ $(document).ready(function ($) {
}
link.appendTo(list);
});
$('a', list).wrap('<div class="list-group-item-dark">');
$('a', list).wrap('<div class="list-group-item list-group-item-action list-group-item-dark p-0">');
//SICKRAGE.browser.fileBrowserDialog.dialog('option', 'dialogClass', 'browserDialog');
});
},
......@@ -752,6 +754,7 @@ $(document).ready(function ($) {
if (!SICKRAGE.browser.fileBrowserDialog) {
// set up the jquery dialog
SICKRAGE.browser.fileBrowserDialog = $('#fileBrowserDialog').modal();
SICKRAGE.browser.fileBrowserDialog.find('.modal-body').addClass('ui-front');
SICKRAGE.browser.fileBrowserDialog.find('.modal-title').text(options.title);
} else {
// The title may change, even if fileBrowserDialog already exists
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment