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/css/style.css | 6 +++++- view/theme/redbasic/js/redbasic.js | 34 ++++++++++++++++------------------ 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index b672b572c..9ecb23f5e 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -3448,4 +3448,8 @@ text-decoration: none; #menulist { list-style-type: none; -} \ No newline at end of file +} + +.savedsearchdrop { + opacity: 0; +} 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