diff options
author | friendica <info@friendica.com> | 2011-12-01 18:27:45 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-12-01 18:27:45 -0800 |
commit | 513c1c0d683fc770de7d9a78e0a83df9211bb4aa (patch) | |
tree | 384a8e056de800f6656ff9df3935e42f3e81bf07 /view/theme | |
parent | ac3df5fece6e1f5a6eab3a2694b15bcf45ed31e4 (diff) | |
download | volse-hubzilla-513c1c0d683fc770de7d9a78e0a83df9211bb4aa.tar.gz volse-hubzilla-513c1c0d683fc770de7d9a78e0a83df9211bb4aa.tar.bz2 volse-hubzilla-513c1c0d683fc770de7d9a78e0a83df9211bb4aa.zip |
dynamic delete icons for saved-search on network page
Diffstat (limited to 'view/theme')
-rw-r--r-- | view/theme/duepuntozero/saved_searches_aside.tpl | 4 | ||||
-rw-r--r-- | view/theme/duepuntozero/theme.php | 21 |
2 files changed, 23 insertions, 2 deletions
diff --git a/view/theme/duepuntozero/saved_searches_aside.tpl b/view/theme/duepuntozero/saved_searches_aside.tpl index e2aae1e77..e6a0d6278 100644 --- a/view/theme/duepuntozero/saved_searches_aside.tpl +++ b/view/theme/duepuntozero/saved_searches_aside.tpl @@ -5,8 +5,8 @@ <ul id="saved-search-ul"> {{ for $saved as $search }} <li class="saved-search-li clear"> - <a onmouseout="imgdull(this);" onmouseover="imgbright(this);" onclick="return confirmDelete();" class="icon savedsearchdrop drophide" href="network/?f=&remove=1&search=$search.encodedterm"></a> - <a class="savedsearchterm" href="network/?f=&search=$search.encodedterm">$search.term</a> + <a title="$search.delete" onclick="return confirmDelete();" id="drop-saved-search-term-$search.id" class="iconspacer savedsearchdrop " href="network/?f=&remove=1&search=$search.encodedterm"></a> + <a id="saved-search-term-$search.id" class="savedsearchterm" href="network/?f=&search=$search.encodedterm">$search.term</a> </li> {{ endfor }} </ul> diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php index 3e55b658a..7d919fedc 100644 --- a/view/theme/duepuntozero/theme.php +++ b/view/theme/duepuntozero/theme.php @@ -21,6 +21,27 @@ $('.sidebar-group-element').hover( id = $(this).attr('id'); $('#edit-' + id).removeClass('icon');$('#edit-' + id).addClass('iconspacer');} ); + + +$('.savedsearchdrop').hover( + function() { + $(this).addClass('drop'); $(this).addClass('icon'); $(this).removeClass('iconspacer');}, + function() { + $(this).removeClass('drop'); $(this).removeClass('icon'); $(this).addClass('iconspacer');} + ); + +$('.savedsearchterm').hover( + function() { + id = $(this).attr('id'); + $('#drop-' + id).addClass('icon'); $('#drop-' + id).addClass('drophide'); $('#drop-' + id).removeClass('iconspacer');}, + + function() { + id = $(this).attr('id'); + $('#drop-' + id).removeClass('icon');$('#drop-' + id).removeClass('drophide'); $('#drop-' + id).addClass('iconspacer');} + ); + }); + + </script> EOT; |