From 4aea8fffba115b8a6d22dfc58c073402a0c0d53c Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 3 Mar 2013 07:38:10 +0000 Subject: [PATCH] update favorite/featured button tooltip in selected state --- static/js/pandora/folders.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/pandora/folders.js b/static/js/pandora/folders.js index 445f693c..8d60a1bd 100644 --- a/static/js/pandora/folders.js +++ b/static/js/pandora/folders.js @@ -134,6 +134,7 @@ pandora.ui.folders = function() { var listData; Ox.Request.clearCache(); // fixme: remove pandora.site.sectionFolders[ui.section][i].showBrowser = !pandora.site.sectionFolders[ui.section][i].showBrowser; + this.options({tooltip: data.value ? 'Done' : 'Manage Favorite ' + folderItems}); if (pandora.site.sectionFolders[ui.section][i].showBrowser) { pandora.$ui.folderList.favorite.replaceWith( pandora.$ui.folderBrowser.favorite = pandora.ui.folderBrowser('favorite') @@ -180,6 +181,7 @@ pandora.ui.folders = function() { var listData; Ox.Request.clearCache(); // fixme: remove pandora.site.sectionFolders[ui.section][i].showBrowser = !pandora.site.sectionFolders[ui.section][i].showBrowser; + this.options({tooltip: data.value ? 'Done' : 'Manage Favorite ' + folderItems}); if (pandora.site.sectionFolders[ui.section][i].showBrowser) { pandora.$ui.folderList.featured.replaceWith( pandora.$ui.folderBrowser.featured = pandora.ui.folderBrowser('featured')