]> git.mxchange.org Git - friendica.git/blobdiff - include/main.js
sql error diaspora re-queue
[friendica.git] / include / main.js
index e5c78a0654a2bcad8dd0a9a7d05678bba6fcf354..9929c336f0488ea7c6dec5ef18361aef553b7813 100644 (file)
                if($('#live-network').length)   { src = 'network'; liveUpdate(); }
                if($('#live-profile').length)   { src = 'profile'; liveUpdate(); }
                if($('#live-community').length) { src = 'community'; liveUpdate(); }
+               if($('#live-notes').length)     { src = 'notes'; liveUpdate(); }
                if($('#live-display').length) { 
                        if(liking) {
                                liking = 0;
                                else { 
 
                                        $('#' + ident + ' ' + '.wall-item-ago').replaceWith($(this).find('.wall-item-ago')); 
-                                       $('#' + ident + ' ' + '.wall-item-comment-wrapper').replaceWith($(this).find('.wall-item-comment-wrapper'));
+                                       if($('#' + ident + ' ' + '.comment-edit-text-empty').length)
+                                               $('#' + ident + ' ' + '.wall-item-comment-wrapper').replaceWith($(this).find('.wall-item-comment-wrapper'));
                                        $('#' + ident + ' ' + '.wall-item-like').replaceWith($(this).find('.wall-item-like'));
                                        $('#' + ident + ' ' + '.wall-item-dislike').replaceWith($(this).find('.wall-item-dislike'));
                                        $('#' + ident + ' ' + '.my-comment-photo').each(function() {
        function contactgroupChangeMember(gid,cid) {
                $('body').css('cursor', 'wait');
                $.get('contactgroup/' + gid + '/' + cid, function(data) {
-                               $('body').css('cursor', 'auto');                                
+                               $('body').css('cursor', 'auto');
                });
        }
 
@@ -402,3 +404,4 @@ Array.prototype.remove = function(item) {
   this.length = from < 0 ? this.length + from : from;
   return this.push.apply(this, rest);
 };
+