mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-10 16:19:54 +00:00
Set database as default browse view
This commit is contained in:
parent
4805ae4f1f
commit
a8109d6526
@ -188,8 +188,8 @@ main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.col-md {
|
.col-md {
|
||||||
min-width:250px;
|
min-width:260px;
|
||||||
max-width:350px;
|
max-width:260px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-img-top {
|
.card-img-top {
|
||||||
|
@ -203,13 +203,13 @@
|
|||||||
<div class="card-header" id="panel-heading-browse">
|
<div class="card-header" id="panel-heading-browse">
|
||||||
<ul class="nav nav-tabs card-header-tabs">
|
<ul class="nav nav-tabs card-header-tabs">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link text-dark" href="#" id="cardBrowseNavFilesystem">Filesystem</a>
|
<a class="nav-link text-dark" href="#" id="cardBrowseNavDatabase">Database</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link text-dark" href="#" id="cardBrowseNavPlaylists">Playlists</a>
|
<a class="nav-link text-dark" href="#" id="cardBrowseNavPlaylists">Playlists</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link text-dark" href="#" id="cardBrowseNavDatabase">Database</a>
|
<a class="nav-link text-dark" href="#" id="cardBrowseNavFilesystem">Filesystem</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -42,7 +42,7 @@ var app = {};
|
|||||||
|
|
||||||
app.apps = {"playback": { "state": "" },
|
app.apps = {"playback": { "state": "" },
|
||||||
"queue": { "state": "0/Any Tag/" },
|
"queue": { "state": "0/Any Tag/" },
|
||||||
"browse": { "active": "browseFilesystem",
|
"browse": { "active": "browseDatabase",
|
||||||
"tabs": { "Filesystem": {"state": "0/!/"},
|
"tabs": { "Filesystem": {"state": "0/!/"},
|
||||||
"Playlists": {"state": "0/!/" },
|
"Playlists": {"state": "0/!/" },
|
||||||
"Database": { "active":"Artist",
|
"Database": { "active":"Artist",
|
||||||
@ -643,7 +643,7 @@ function webSocketConnect() {
|
|||||||
appendClickableIcon($('#'+app.currentApp+app.currentTab+'List > tbody > tr.dir > td:last-child'), 'MPD_API_ADD_TRACK', 'playlist_add');
|
appendClickableIcon($('#'+app.currentApp+app.currentTab+'List > tbody > tr.dir > td:last-child'), 'MPD_API_ADD_TRACK', 'playlist_add');
|
||||||
appendClickableIcon($('#'+app.currentApp+app.currentTab+'List > tbody > tr.song > td:last-child'), 'MPD_API_ADD_TRACK', 'playlist_add');
|
appendClickableIcon($('#'+app.currentApp+app.currentTab+'List > tbody > tr.song > td:last-child'), 'MPD_API_ADD_TRACK', 'playlist_add');
|
||||||
} else {
|
} else {
|
||||||
$('#'+app.currentApp+'List > tbody > tr').on({
|
$('#'+app.currentApp+app.currentTab+'List > tbody > tr').on({
|
||||||
mouseenter: function() {
|
mouseenter: function() {
|
||||||
if($(this).is(".dir"))
|
if($(this).is(".dir"))
|
||||||
appendClickableIcon($(this).children().last(), 'MPD_API_ADD_TRACK', 'playlist_add');
|
appendClickableIcon($(this).children().last(), 'MPD_API_ADD_TRACK', 'playlist_add');
|
||||||
|
Loading…
Reference in New Issue
Block a user