From 2d8a9188ebd0d924ecee269d20f67fbfe38bb002 Mon Sep 17 00:00:00 2001 From: denise Date: Wed, 18 Jul 2012 15:48:15 -0400 Subject: [PATCH] CC-84: Smart Playlists - qtip wasn't showing up on 'new' and 'edit' events - changed 'Artist' to 'Creator' to be consistent with library --- .../forms/SmartPlaylistCriteria.php | 2 +- .../airtime/playlist/smart_playlistbuilder.js | 52 +++++++++---------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/airtime_mvc/application/forms/SmartPlaylistCriteria.php b/airtime_mvc/application/forms/SmartPlaylistCriteria.php index a12328de9..e5eed0c5d 100644 --- a/airtime_mvc/application/forms/SmartPlaylistCriteria.php +++ b/airtime_mvc/application/forms/SmartPlaylistCriteria.php @@ -9,12 +9,12 @@ class Application_Form_SmartPlaylistCriteria extends Zend_Form_SubForm $criteriaOptions = array( 0 => "Select criteria", "album_title" => "Album", - "artist_name" => "Artist", "bit_rate" => "Bit Rate", "bpm" => "Bpm", "comments" => "Comments", "composer" => "Composer", "conductor" => "Conductor", + "artist_name" => "Creator", "disc_number" => "Disc Number", "genre" => "Genre", "isrc_number" => "ISRC", diff --git a/airtime_mvc/public/js/airtime/playlist/smart_playlistbuilder.js b/airtime_mvc/public/js/airtime/playlist/smart_playlistbuilder.js index 760c2a96f..614f1d3b2 100644 --- a/airtime_mvc/public/js/airtime/playlist/smart_playlistbuilder.js +++ b/airtime_mvc/public/js/airtime/playlist/smart_playlistbuilder.js @@ -1,35 +1,11 @@ $(document).ready(function() { 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.

" + - "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() { 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(); div.show(); @@ -42,7 +18,7 @@ function setSmartPlaylistEvents() { 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_pos = curr.index(); var list = curr.parent(); @@ -207,6 +183,30 @@ function setupUI() { 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.

" + + "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) {