diff --git a/airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml b/airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml index 468bcf57c..82c74b2ec 100644 --- a/airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml +++ b/airtime_mvc/application/views/scripts/library/get-file-metadata.ajax.phtml @@ -53,7 +53,7 @@ contents as $row) : ?> $titleMaxStrLen) { + if (mb_strlen($row["track_title"], 'UTF-8') > $titleMaxStrLen) { $row["track_title"] = substr($row["track_title"], 0, 34)."..."; } $artistMaxStrLen = 22; diff --git a/airtime_mvc/application/views/scripts/playlist/smart-block.phtml b/airtime_mvc/application/views/scripts/playlist/smart-block.phtml index 35e581858..d720ae7a0 100644 --- a/airtime_mvc/application/views/scripts/playlist/smart-block.phtml +++ b/airtime_mvc/application/views/scripts/playlist/smart-block.phtml @@ -24,6 +24,7 @@ if (isset($this->obj)) {

length; ?>

+
View / edit description diff --git a/airtime_mvc/public/js/airtime/playlist/smart_playlistbuilder.js b/airtime_mvc/public/js/airtime/playlist/smart_playlistbuilder.js index 058f51060..0a4637b24 100644 --- a/airtime_mvc/public/js/airtime/playlist/smart_playlistbuilder.js +++ b/airtime_mvc/public/js/airtime/playlist/smart_playlistbuilder.js @@ -475,7 +475,7 @@ function callback(data, type) { AIRTIME.playlist.fnOpenPlaylist(json); form = $('#smart-playlist-form'); if (type == 'shuffle') { - form.find('.success').text('Playlist shuffled'); + form.find('.success').text('Smart playlist shuffled'); } else if (type == 'generate') { form.find('.success').text('Smart playlist generated and saved'); //redraw library table so the length gets updated @@ -484,8 +484,8 @@ function callback(data, type) { form.find('.success').show(); form.find('#smart_playlist_options').removeClass("closed"); } else { - form.find('.success').text('Smart Playlist saved'); - form.find('.success').show(); + $('#sp-success-saved').text('Smart playlist saved'); + $('#sp-success-saved').show(); /* Update number of files that meet criteria and change icon to success/warning * as appropriate. This is also done in the form but we do not pass the form