mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-31 23:33:43 +00:00
desktop icons
This commit is contained in:
@@ -44,7 +44,7 @@ body {
|
||||
.module-icons-stock{ background-position: 0 -660px; }
|
||||
.module-icons-support{ background-position: 0 -726px; }
|
||||
|
||||
.topbar-new-comments {
|
||||
.navbar-new-comments {
|
||||
margin: -3px 0px;
|
||||
padding: 2px;
|
||||
font-size: 14px;
|
||||
|
||||
@@ -97,13 +97,22 @@ ModulePage = function(parent, module_name, module_label, help_page, callback) {
|
||||
var update_messages = function() {
|
||||
// Updates Team Messages
|
||||
|
||||
if(inList(['Guest', 'Administrator'], user)) { return; }
|
||||
if(inList(['Guest'], user)) { return; }
|
||||
|
||||
$c_page('home', 'event_updates', 'get_unread_messages', null,
|
||||
function(r,rt) {
|
||||
if(!r.exc) {
|
||||
// This function is defined in toolbar.js
|
||||
page_body.wntoolbar.set_new_comments(r.message);
|
||||
var circle = $('#msg_count')
|
||||
if(circle) {
|
||||
if(r.message.length) {
|
||||
circle.find('span:first').text(r.message.length);
|
||||
circle.toggle(true);
|
||||
} else {
|
||||
circle.toggle(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
@@ -117,7 +126,7 @@ erpnext.startup.set_periodic_updates = function() {
|
||||
clearInterval(wn.updates.id);
|
||||
}
|
||||
|
||||
wn.updates.id = setInterval(update_messages, 180000);
|
||||
wn.updates.id = setInterval(update_messages, 60000);
|
||||
}
|
||||
|
||||
// =======================================
|
||||
|
||||
Reference in New Issue
Block a user