CC-84: Smart Playlists
- qtip wasn't showing up on 'new' and 'edit' events - changed 'Artist' to 'Creator' to be consistent with library
This commit is contained in:
parent
8828961246
commit
2d8a9188eb
|
@ -9,12 +9,12 @@ class Application_Form_SmartPlaylistCriteria extends Zend_Form_SubForm
|
||||||
$criteriaOptions = array(
|
$criteriaOptions = array(
|
||||||
0 => "Select criteria",
|
0 => "Select criteria",
|
||||||
"album_title" => "Album",
|
"album_title" => "Album",
|
||||||
"artist_name" => "Artist",
|
|
||||||
"bit_rate" => "Bit Rate",
|
"bit_rate" => "Bit Rate",
|
||||||
"bpm" => "Bpm",
|
"bpm" => "Bpm",
|
||||||
"comments" => "Comments",
|
"comments" => "Comments",
|
||||||
"composer" => "Composer",
|
"composer" => "Composer",
|
||||||
"conductor" => "Conductor",
|
"conductor" => "Conductor",
|
||||||
|
"artist_name" => "Creator",
|
||||||
"disc_number" => "Disc Number",
|
"disc_number" => "Disc Number",
|
||||||
"genre" => "Genre",
|
"genre" => "Genre",
|
||||||
"isrc_number" => "ISRC",
|
"isrc_number" => "ISRC",
|
||||||
|
|
|
@ -1,35 +1,11 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
setSmartPlaylistEvents();
|
setSmartPlaylistEvents();
|
||||||
|
|
||||||
$(".playlist_type_help_icon").qtip({
|
|
||||||
content: {
|
|
||||||
text: "A static playlist will save the criteria and generate the playlist content immediately." +
|
|
||||||
"This allows you to edit and view it in the Playlist Builder before adding it to a show.<br /><br />" +
|
|
||||||
"A dynamic playlist will only save the criteria. The playlist content will get generated upon " +
|
|
||||||
"adding it to a show. You will not be able to view and edit it in the Playlist Builder."
|
|
||||||
},
|
|
||||||
hide: {
|
|
||||||
delay: 500,
|
|
||||||
fixed: true
|
|
||||||
},
|
|
||||||
style: {
|
|
||||||
border: {
|
|
||||||
width: 0,
|
|
||||||
radius: 4
|
|
||||||
},
|
|
||||||
classes: "ui-tooltip-dark ui-tooltip-rounded"
|
|
||||||
},
|
|
||||||
position: {
|
|
||||||
my: "left bottom",
|
|
||||||
at: "right center"
|
|
||||||
},
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function setSmartPlaylistEvents() {
|
function setSmartPlaylistEvents() {
|
||||||
var form = $('#smart-playlist-form');
|
var form = $('#smart-playlist-form');
|
||||||
|
|
||||||
form.find('.criteria_add').live("click", function(){
|
form.find('.criteria_add').live('click', function(){
|
||||||
var div = $('dd[id="sp_criteria-element"]').children('div:visible:last').next();
|
var div = $('dd[id="sp_criteria-element"]').children('div:visible:last').next();
|
||||||
|
|
||||||
div.show();
|
div.show();
|
||||||
|
@ -42,7 +18,7 @@ function setSmartPlaylistEvents() {
|
||||||
removeButtonCheck();
|
removeButtonCheck();
|
||||||
});
|
});
|
||||||
|
|
||||||
form.find('a[id^="criteria_remove"]').live("click", function(){
|
form.find('a[id^="criteria_remove"]').live('click', function(){
|
||||||
var curr = $(this).parent();
|
var curr = $(this).parent();
|
||||||
var curr_pos = curr.index();
|
var curr_pos = curr.index();
|
||||||
var list = curr.parent();
|
var list = curr.parent();
|
||||||
|
@ -207,6 +183,30 @@ function setupUI() {
|
||||||
applyPlatformOpacityRules: false
|
applyPlatformOpacityRules: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(".playlist_type_help_icon").qtip({
|
||||||
|
content: {
|
||||||
|
text: "A static playlist will save the criteria and generate the playlist content immediately." +
|
||||||
|
"This allows you to edit and view it in the Playlist Builder before adding it to a show.<br /><br />" +
|
||||||
|
"A dynamic playlist will only save the criteria. The playlist content will get generated upon " +
|
||||||
|
"adding it to a show. You will not be able to view and edit it in the Playlist Builder."
|
||||||
|
},
|
||||||
|
hide: {
|
||||||
|
delay: 500,
|
||||||
|
fixed: true
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
border: {
|
||||||
|
width: 0,
|
||||||
|
radius: 4
|
||||||
|
},
|
||||||
|
classes: "ui-tooltip-dark ui-tooltip-rounded"
|
||||||
|
},
|
||||||
|
position: {
|
||||||
|
my: "left bottom",
|
||||||
|
at: "right center"
|
||||||
|
},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function enableAndShowExtraField(valEle, index) {
|
function enableAndShowExtraField(valEle, index) {
|
||||||
|
|
Loading…
Reference in New Issue