]> git.mxchange.org Git - friendica.git/commitdiff
animate the sparkler, author was getting sparkled on own page
authorMike Macgirvin <mike@macgirvin.com>
Tue, 28 Sep 2010 05:43:30 +0000 (22:43 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Tue, 28 Sep 2010 05:43:30 +0000 (22:43 -0700)
include/main.js
mod/network.php

index 8245cef2fee31afc236438624a385c3dce10b624..3b6528ee9502abb6cb138e168f3683bde3aba7aa 100644 (file)
@@ -43,6 +43,7 @@
                $.ajaxSetup({cache: false});
                msie = $.browser.msie ;
                NavUpdate(); 
+               sparkler();
                // Allow folks to stop the ajax page updates with the pause/break key
                $(document).keypress(function(event) {
                        if(event.keyCode == '19') {
                });                                     
        });
 
+       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() {
 
                if($('#live-network').length) { src = 'network'; liveUpdate(); }
index 5bda15d3fd2d1b6706416b4042ee328dcd08db58..1634a0f060bef81f4849fccea9f8b037df4eb28a 100644 (file)
@@ -252,7 +252,7 @@ function network_content(&$a, $update = 0) {
                        // Can we use our special contact URL for this author? 
 
                        if(strlen($item['author-link'])) {
-                               if($item['author-link'] == $item['url']) {
+                               if($item['author-link'] == $item['url'] && (! $item['self'])) {
                                        $profile_link = $redirect_url;
                                        $sparkle = ' sparkle';
                                }