]> git.mxchange.org Git - friendica.git/blobdiff - js/main.js
quattro: add "view in context" link in search results
[friendica.git] / js / main.js
old mode 100644 (file)
new mode 100755 (executable)
index be6b5db..4cb278e
@@ -88,6 +88,7 @@
 
                /* notifications template */
                var notifications_tpl= unescape($("#nav-notifications-template[rel=template]").html());
+               var notifications_all = unescape($('<div>').append( $("#nav-notifications-see-all").clone() ).html()); //outerHtml hack
                var notifications_empty = unescape($("#nav-notifications-menu").html());
                
                /* nav update event  */
                                $("#nav-notifications-linkmenu").addClass("on");
                                nnm = $("#nav-notifications-menu");
                                
-                               nnm.html("<li><a href='"+baseurl+"/notifications/network'>Show All Notifications</a></li>");
+                               nnm.html(notifications_all);
                                
                                //nnm.attr('popup','true');
                                eNotif.children("note").each(function(){
                                if(data.preview) {
                                                
                                        $("#comment-edit-preview-" + id).html(data.preview);
-                                       $("#comment-edit-preview-" + id + " a").removeAttr('href');
+                                       $("#comment-edit-preview-" + id + " a").click(function() { return false; });
                                }
                        },
                        "json"  
                        function(data) {
                                if(data.preview) {                      
                                        $("#jot-preview-content").html(data.preview);
-                                       $("#jot-preview-content" + " a").removeAttr('href');
+                                       $("#jot-preview-content" + " a").click(function() { return false; });
                                }
                        },
                        "json"  
                );  
-               $("#jot-preview").val("1");
+               $("#jot-preview").val("0");
                return true;  
        }