diff --git a/js/app.js b/js/app.js index 29adcca7..65717d8e 100755 --- a/js/app.js +++ b/js/app.js @@ -592,8 +592,8 @@ Audios.prototype.loadIndividualCategory = function (evt, callback) { 'data-mimetype': el.mim, 'mimetype': el.mim, 'data-title': el.cl1, - 'data-album': el.cl2, - 'data-year': el.cl3, + 'data-artist': el.cl2, + 'data-album': el.cl3, 'data-cover': el.cid, 'data-path': el.lin, 'class': 'dragable' @@ -1041,16 +1041,16 @@ Audios.prototype.sort_playlist = function (evt) { Audios.prototype.current_song_ui_change = function (coverUrl, activeLi) { var addCss; var addDescr; - const coverID = activeLi.data('cover'); + var coverID = activeLi.data('cover'); if (coverID === '') { addCss = 'background-color: #D3D3D3;color: #333333;'; addDescr = activeLi.data('title').substring(0, 1); } else { - addCss = `background-image:url(${coverUrl}${coverID});-webkit-background-size:cover;-moz-background-size:cover;background-size:cover;`; + addCss = 'background-image:url(' + coverUrl + coverID + ');-webkit-background-size:cover;-moz-background-size:cover;background-size:cover;'; addDescr = ''; } $('.sm2-playlist-cover').attr({'style': addCss}).text(addDescr); - document.title = `${activeLi.data('title')}—${activeLi.data('album')}`; + document.title = activeLi.data('title') + ' — ' + activeLi.data('album'); }; Audios.prototype.soundmanager_callback = function (SMaction) { diff --git a/js/bar-ui.js b/js/bar-ui.js index c032c939..0cea1544 100755 --- a/js/bar-ui.js +++ b/js/bar-ui.js @@ -794,7 +794,7 @@ } // remove any failed character sequence, also - dom.playlistTarget.innerHTML = ''; + dom.playlistTarget.innerHTML = ''; diff --git a/js/widgets/audioplayer.js b/js/widgets/audioplayer.js index cc6b235b..46c41cdf 100644 --- a/js/widgets/audioplayer.js +++ b/js/widgets/audioplayer.js @@ -54,8 +54,8 @@ 'data-mimetype': el.mim, 'mimetype': el.mim, 'data-title': el.cl1, - 'data-album': el.cl2, - 'data-year': el.cl3, + 'data-artist': el.cl2, + 'data-album': el.cl3, 'data-cover': el.cid, 'data-path': el.lin, 'class': 'dragable' diff --git a/templates/index.php b/templates/index.php index 704e5b58..889a247e 100755 --- a/templates/index.php +++ b/templates/index.php @@ -24,7 +24,7 @@ Util::addStyle('audioplayer_editor', 'style'); } if ($_['audioplayer_sonos'] !== 'checked') { - Util::addScript('audioplayer', 'bar-ui-min'); + Util::addScript('audioplayer', 'bar-ui'); Util::addStyle('audioplayer', '3rdparty/fontello/css/animation'); } else { Util::addScript('audioplayer', 'sonos');