CC-84: Smart Playlists
- add qtip for smart playlists - modified qtip content for regular playlists that contain smart playlists
This commit is contained in:
parent
e1f962baa9
commit
c9afac239a
5 changed files with 159 additions and 14 deletions
File diff suppressed because one or more lines are too long
|
@ -417,6 +417,61 @@ input[type="text"]:focus, input[type="password"]:focus, textarea:focus, .input_t
|
|||
vertical-align: top;
|
||||
}
|
||||
|
||||
/***** LIBRARY QTIP METADATA SPECIFIC STYLES BEGIN *****/
|
||||
.library-get-file-md tr td{
|
||||
font-size:10px;
|
||||
padding: 0px;
|
||||
vertical-align:top;
|
||||
}
|
||||
|
||||
table.library-get-file-md{
|
||||
margin-left:15px;
|
||||
width:350px;
|
||||
}
|
||||
|
||||
table.library-get-file-md.table-small{
|
||||
width:290px !important;
|
||||
}
|
||||
|
||||
.file-md-qtip-criteria-width-small{
|
||||
width:80px;
|
||||
}
|
||||
|
||||
.file-md-qtip-criteria-width{
|
||||
width:120px;
|
||||
}
|
||||
|
||||
.file-md-qtip-row-width-title{
|
||||
width:170px;
|
||||
padding-right:5px !important;
|
||||
}
|
||||
|
||||
.file-md-qtip-row-width-artist{
|
||||
width:100px;
|
||||
}
|
||||
|
||||
.file-md-qtip-row-width-small{
|
||||
width:50x;
|
||||
text-align:right;
|
||||
}
|
||||
|
||||
.file-md-qtip-playlist td{
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.file-md-qtip-playlist.dynamic td{
|
||||
color: #63a2f0;
|
||||
}
|
||||
|
||||
.file-md-qtip-playlist.static td{
|
||||
color: #f09839;
|
||||
}
|
||||
|
||||
|
||||
/***** LIBRARY QTIP METADATA SPECIFIC STYLES END *****/
|
||||
|
||||
|
||||
/***** SMART PLAYLIST SPECIFIC STYLES BEGIN *****/
|
||||
.sp-invisible{
|
||||
visibility: hidden;
|
||||
|
|
|
@ -429,7 +429,8 @@ function getCriteriaOptionType(e) {
|
|||
|
||||
function callback(data, type) {
|
||||
var form = $('#smart-playlist-form'),
|
||||
json = $.parseJSON(data);
|
||||
json = $.parseJSON(data),
|
||||
dt = $('table[id="library_display"]').dataTable();
|
||||
|
||||
form.find('span[class="errors sp-errors"]').remove();
|
||||
|
||||
|
@ -449,7 +450,6 @@ function callback(data, type) {
|
|||
} else if (type == 'generate') {
|
||||
form.find('.success').text('Smart playlist generated and saved');
|
||||
//redraw library table so the length gets updated
|
||||
var dt = $('table[id="library_display"]').dataTable();
|
||||
dt.fnStandingRedraw();
|
||||
}
|
||||
form.find('.success').show();
|
||||
|
@ -457,6 +457,8 @@ function callback(data, type) {
|
|||
} else {
|
||||
form.find('.success').text('Criteria saved');
|
||||
form.find('.success').show();
|
||||
//redraw library table incase block changed from static to dynamic or vice versa
|
||||
dt.fnStandingRedraw();
|
||||
|
||||
/* 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue