Only show the messaging when viewing the recommend tab, otherwise remove it.
This commit is contained in:
Родитель
334e0cbfbf
Коммит
4353078bae
|
@ -99,6 +99,9 @@ aboutYou.controller("vizCtrl", function($scope, dataService) {
|
|||
// Adjusting highligted tab
|
||||
$('#interests_tab').addClass("active");
|
||||
$('#recommend_tab').removeClass("active");
|
||||
|
||||
// Remove experimental messaging since we're now removing the recommend tab.
|
||||
$('.dropdown-menu .report-bugs').css("display", 'none');
|
||||
}
|
||||
$('#recommend_tab').css("display", displayVal);
|
||||
};
|
||||
|
|
|
@ -736,6 +736,14 @@ InterestDashboard.prototype = {
|
|||
|
||||
graph: function(data, table, $scope) {
|
||||
try {
|
||||
// Show the recommend tab messaging in the cog only when viewing the recommend tab.
|
||||
$('#interests_tab').on('click', () => {
|
||||
$('.dropdown-menu .report-bugs').css("display", 'none');
|
||||
});
|
||||
$('#recommend_tab').on('click', () => {
|
||||
$('.dropdown-menu .report-bugs').css("display", 'inherit');
|
||||
});
|
||||
|
||||
// We got some data so make the Dashboard view active and the 'no history' view inactive
|
||||
$('#yourInterests').addClass("active");
|
||||
$('#noHistory').removeClass("active");
|
||||
|
|
Загрузка…
Ссылка в новой задаче