Quellcode durchsuchen

[minor] desktop.js

version-14
Rushabh Mehta vor 9 Jahren
Ursprung
Commit
058c95cbdd
1 geänderte Dateien mit 14 neuen und 12 gelöschten Zeilen
  1. +14
    -12
      frappe/core/page/desktop/desktop.js

+ 14
- 12
frappe/core/page/desktop/desktop.js Datei anzeigen

@@ -157,19 +157,21 @@ $.extend(frappe.desktop, {
}

// if module found
var notifier = $(".module-count-" + module._id);
if(notifier.length) {
notifier.toggle(sum ? true : false);
var circle = notifier.find(".circle-text");
var text = sum || '';
if(text > 20) {
text = '20+';
}
if(module._id.indexOf('/')===-1) {
var notifier = $(".module-count-" + module._id);
if(notifier.length) {
notifier.toggle(sum ? true : false);
var circle = notifier.find(".circle-text");
var text = sum || '';
if(text > 20) {
text = '20+';
}

if(circle.length) {
circle.html(text);
} else {
notifier.html(text);
if(circle.length) {
circle.html(text);
} else {
notifier.html(text);
}
}
}
}


Laden…
Abbrechen
Speichern