update to messages, added avatar-large

This commit is contained in:
Rushabh Mehta
2012-10-03 18:32:10 +05:30
parent bb00fdbfb8
commit b62bbc6dc7
6 changed files with 54 additions and 2429 deletions

File diff suppressed because one or more lines are too long

View File

@@ -93,6 +93,8 @@ erpnext.toolbar.add_modules = function() {
erpnext.toolbar.set_new_comments = function(new_comments) {
var navbar_nc = $('.navbar-new-comments');
if(wn.container.page && wn.container.page.page_name=="messages")
return;
if(new_comments && new_comments.length>0) {
navbar_nc.text(new_comments.length);
navbar_nc.addClass('navbar-new-comments-true')
@@ -102,7 +104,7 @@ erpnext.toolbar.set_new_comments = function(new_comments) {
if(!$('#' + id)[0]) {
show_alert(msg).attr("id", id);
}
})
});
} else {
navbar_nc.removeClass('navbar-new-comments-true');
navbar_nc.text(0);