From 23683ccccb70f838288582d8a1ce9cca2bfc1ddd Mon Sep 17 00:00:00 2001 From: denise Date: Thu, 9 Aug 2012 17:43:12 -0400 Subject: [PATCH] Smart Playlists: changed positioning of error message on click 'Save' --- .../application/views/scripts/playlist/smart-block.phtml | 1 + .../public/js/airtime/playlist/smart_playlistbuilder.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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