mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-10 16:19:54 +00:00
Fix: small layout improvements
This commit is contained in:
parent
568ad1e382
commit
f97ec914f6
@ -81,9 +81,9 @@
|
||||
|
||||
<div class="card" id="cardPlayback">
|
||||
<div class="card-header">Playback
|
||||
<div class="btn-group mr-2 featTags pull-right">
|
||||
<button id="PlaybackColsBtn" class="btn btn-sm btn-light dropdown-toggle material-icons" type="button" data-toggle="dropdown">settings</button>
|
||||
<div class="dropdown-menu bg-dark px-2" id="PlaybackColsDropdown"><form></form>
|
||||
<div class="btn-group mr-0 featTags pull-right">
|
||||
<button id="PlaybackColsBtn" class="btn btn-sm btn-light dropdown-toggle material-icons material-icons-small" type="button" data-toggle="dropdown">settings</button>
|
||||
<div class="dropdown-menu dropdown-menu-right bg-dark px-2" id="PlaybackColsDropdown"><form></form>
|
||||
<button data-href='{"cmd": "saveColsPlayback", "options": ["Playback"]}' class="btn btn-success btn-block btn-sm mt-2">Apply</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -610,6 +610,8 @@ function appInit() {
|
||||
document.addEventListener('keydown', function(event) {
|
||||
if (event.target.tagName == 'INPUT' || event.target.tagName == 'SELECT')
|
||||
return;
|
||||
if (event.ctrlKey || event.altKey)
|
||||
return;
|
||||
if (event.shiftKey) {
|
||||
switch (event.which) {
|
||||
case 83: //S
|
||||
@ -1070,6 +1072,7 @@ function parseSettings(obj) {
|
||||
settings.colsSearch = ["Title", "Duration"];
|
||||
settings.colsBrowseFilesystem = ["Type", "Title", "Duration"];
|
||||
settings.colsBrowseDatabase = ["Track", "Title", "Duration"];
|
||||
settings.colsPlayback = [];
|
||||
}
|
||||
else {
|
||||
var pbtl = '';
|
||||
@ -1949,7 +1952,7 @@ function titleClick() {
|
||||
function gotoBrowse(x) {
|
||||
var tag = x.parentNode.getAttribute('data-tag');
|
||||
var name = decodeURI(x.parentNode.getAttribute('data-name'));
|
||||
if (tag != '' && name != '' && settings.browsetags.includes(tag))
|
||||
if (tag != '' && name != '' && name != '-' && settings.browsetags.includes(tag))
|
||||
appGoto('Browse', 'Database', tag, '0/-/' + name);
|
||||
}
|
||||
|
||||
@ -2768,6 +2771,7 @@ function songChange(obj) {
|
||||
if (playingTr)
|
||||
playingTr.getElementsByTagName('td')[1].innerText = obj.data.Title;
|
||||
|
||||
if (playstate == 'play')
|
||||
showNotification(obj.data.Title, textNotification, htmlNotification, 'success');
|
||||
lastSong = curSong;
|
||||
lastSongObj = obj;
|
||||
|
Loading…
Reference in New Issue
Block a user