/* 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;
}