소스 검색

[minor] desktop.js

version-14
Rushabh Mehta 9 년 전
부모
커밋
058c95cbdd
1개의 변경된 파일14개의 추가작업 그리고 12개의 파일을 삭제
  1. +14
    -12
      frappe/core/page/desktop/desktop.js

+ 14
- 12
frappe/core/page/desktop/desktop.js 파일 보기

@@ -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);
}
}
}
}


불러오는 중...
취소
저장