mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
auto-organize fix
This commit is contained in:
parent
bbfda77868
commit
f64e0c7c53
54 changed files with 838 additions and 666 deletions
|
@ -60,9 +60,7 @@
|
|||
|
||||
self.showSearchPanel = function () {
|
||||
|
||||
var viewMenuSearch = $('.viewMenuSearch');
|
||||
|
||||
viewMenuSearch.removeClass('hide');
|
||||
showSearchMenu();
|
||||
$('.headerSearchInput').focus();
|
||||
};
|
||||
}
|
||||
|
@ -199,7 +197,43 @@
|
|||
function closeSearchOverlay() {
|
||||
$('.headerSearchInput').val('');
|
||||
onHeaderSearchChange('');
|
||||
$('.viewMenuSearch').addClass('hide');
|
||||
hideSearchMenu();
|
||||
}
|
||||
|
||||
function showSearchMenu() {
|
||||
|
||||
require(["jquery", "velocity"], function ($, Velocity) {
|
||||
|
||||
$('.btnCloseSearch').hide();
|
||||
var elem = $('.viewMenuSearch')
|
||||
.css({ left: '100%' })
|
||||
.removeClass('hide')[0];
|
||||
|
||||
Velocity.animate(elem, { "left": "0px" },
|
||||
{
|
||||
complete: function () {
|
||||
$('.btnCloseSearch').show();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function hideSearchMenu() {
|
||||
|
||||
require(["jquery", "velocity"], function ($, Velocity) {
|
||||
|
||||
$('.btnCloseSearch').hide();
|
||||
var elem = $('.viewMenuSearch')
|
||||
.css({ left: '0' })[0];
|
||||
|
||||
Velocity.animate(elem, { "left": "100%" },
|
||||
{
|
||||
complete: function () {
|
||||
$('.viewMenuSearch').addClass('hide');
|
||||
},
|
||||
duration: 'fast'
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('pagehide', ".libraryPage", function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue