Smart Playlists: changed positioning of error message on click 'Save'
This commit is contained in:
parent
ac295243d4
commit
23683ccccb
|
@ -24,6 +24,7 @@ if (isset($this->obj)) {
|
||||||
</h3>
|
</h3>
|
||||||
<h4 id="obj_length"><?php echo $this->length; ?></h4>
|
<h4 id="obj_length"><?php echo $this->length; ?></h4>
|
||||||
</div>
|
</div>
|
||||||
|
<div id='sp-success-saved' class='success' style='display:none'></div>
|
||||||
|
|
||||||
<fieldset class="toggle closed" id="fieldset-metadate_change">
|
<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>
|
<legend style="cursor: pointer;"><span class="ui-icon ui-icon-triangle-2-n-s"></span>View / edit description</legend>
|
||||||
|
|
|
@ -475,7 +475,7 @@ function callback(data, type) {
|
||||||
AIRTIME.playlist.fnOpenPlaylist(json);
|
AIRTIME.playlist.fnOpenPlaylist(json);
|
||||||
form = $('#smart-playlist-form');
|
form = $('#smart-playlist-form');
|
||||||
if (type == 'shuffle') {
|
if (type == 'shuffle') {
|
||||||
form.find('.success').text('Playlist shuffled');
|
form.find('.success').text('Smart playlist shuffled');
|
||||||
} else if (type == 'generate') {
|
} else if (type == 'generate') {
|
||||||
form.find('.success').text('Smart playlist generated and saved');
|
form.find('.success').text('Smart playlist generated and saved');
|
||||||
//redraw library table so the length gets updated
|
//redraw library table so the length gets updated
|
||||||
|
@ -484,8 +484,8 @@ function callback(data, type) {
|
||||||
form.find('.success').show();
|
form.find('.success').show();
|
||||||
form.find('#smart_playlist_options').removeClass("closed");
|
form.find('#smart_playlist_options').removeClass("closed");
|
||||||
} else {
|
} else {
|
||||||
form.find('.success').text('Smart Playlist saved');
|
$('#sp-success-saved').text('Smart playlist saved');
|
||||||
form.find('.success').show();
|
$('#sp-success-saved').show();
|
||||||
|
|
||||||
/* Update number of files that meet criteria and change icon to success/warning
|
/* 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
|
* as appropriate. This is also done in the form but we do not pass the form
|
||||||
|
|
Loading…
Reference in New Issue