mirror of
https://github.com/friendica/friendica
synced 2024-12-23 15:20:17 +00:00
animate the sparkler, author was getting sparkled on own page
This commit is contained in:
parent
55351114fa
commit
27946c102d
2 changed files with 16 additions and 1 deletions
|
@ -43,6 +43,7 @@
|
||||||
$.ajaxSetup({cache: false});
|
$.ajaxSetup({cache: false});
|
||||||
msie = $.browser.msie ;
|
msie = $.browser.msie ;
|
||||||
NavUpdate();
|
NavUpdate();
|
||||||
|
sparkler();
|
||||||
// Allow folks to stop the ajax page updates with the pause/break key
|
// Allow folks to stop the ajax page updates with the pause/break key
|
||||||
$(document).keypress(function(event) {
|
$(document).keypress(function(event) {
|
||||||
if(event.keyCode == '19') {
|
if(event.keyCode == '19') {
|
||||||
|
@ -59,6 +60,20 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var spark = false;
|
||||||
|
function sparkler() {
|
||||||
|
if(spark) {
|
||||||
|
$('.sparkle').css({cursor: 'pointer'});
|
||||||
|
spark = false;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$('.sparkle').css({cursor: 'crosshair'});
|
||||||
|
spark = true;
|
||||||
|
}
|
||||||
|
setTimeout(sparkler,500);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function NavUpdate() {
|
function NavUpdate() {
|
||||||
|
|
||||||
if($('#live-network').length) { src = 'network'; liveUpdate(); }
|
if($('#live-network').length) { src = 'network'; liveUpdate(); }
|
||||||
|
|
|
@ -252,7 +252,7 @@ function network_content(&$a, $update = 0) {
|
||||||
// Can we use our special contact URL for this author?
|
// Can we use our special contact URL for this author?
|
||||||
|
|
||||||
if(strlen($item['author-link'])) {
|
if(strlen($item['author-link'])) {
|
||||||
if($item['author-link'] == $item['url']) {
|
if($item['author-link'] == $item['url'] && (! $item['self'])) {
|
||||||
$profile_link = $redirect_url;
|
$profile_link = $redirect_url;
|
||||||
$sparkle = ' sparkle';
|
$sparkle = ' sparkle';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue