Smart Playlists: changed positioning of error message on click 'Save'

This commit is contained in:
denise 2012-08-09 17:43:12 -04:00
parent ac295243d4
commit 23683ccccb
2 changed files with 4 additions and 3 deletions

View File

@ -24,6 +24,7 @@ if (isset($this->obj)) {
</h3>
<h4 id="obj_length"><?php echo $this->length; ?></h4>
</div>
<div id='sp-success-saved' class='success' style='display:none'></div>
<fieldset class="toggle closed" id="fieldset-metadate_change">
<legend style="cursor: pointer;"><span class="ui-icon ui-icon-triangle-2-n-s"></span>View / edit description</legend>

View File

@ -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