From 72287b24783edcaf44d1d93bb901729d1af0375a Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 3 Nov 2013 15:14:31 -0800 Subject: fix the saved search term delete icons in redbasic so they are hidden by default. This is a bit harder using font-based icons than it was with images that could easily be hidden. We'll do it with opacity instead of visibility or display css settings. --- view/theme/redbasic/js/redbasic.js | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'view/theme/redbasic/js/redbasic.js') diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index e7a682911..a97e906bf 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -66,24 +66,22 @@ $('.sidebar-group-element').hover( ); -//$('.saved-search-li a').hover( -// function() { -// id = $(this).attr('id'); -// $('#dropicon-' + id).css('visibility','visible');}, -// function() { -// id = $(this).attr('id'); -// $('#dropicon-' + id).css('visibility','hidden');} -// ); - -//$('.savedsearchterm').hover( -// function() { -// id = $(this).attr('id'); -// $('#dropicon-' + id).css('visibility','visible');}, -// -// function() { -// id = $(this).attr('id'); -// $('#dropicon-' + id).css('visibility','hidden'); -// }); +$('.savedsearchdrop').hover( + function() { + $(this).css('opacity','1.0');}, + function() { + $(this).css('opacity','0');} + ); + +$('.savedsearchterm').hover( + function() { + id = $(this).attr('id'); + $('#dropicon-' + id).css('opacity','1.0');}, + + function() { + id = $(this).attr('id'); + $('#dropicon-' + id).css('opacity','0'); + }); }); -- cgit v1.2.3