소스 검색

notification fix and date selectable (frappe/erpnext#6423) (frappe/erpnext#6389) (#2088)

* [ui][fix] disable notification when 0

* [enhance] other month dates selectable
version-14
Faris Ansari 8 년 전
committed by Rushabh Mehta
부모
커밋
f69fc526c6
2개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -0
      frappe/public/js/frappe/form/control.js
  2. +3
    -2
      frappe/public/js/frappe/ui/toolbar/notifications.js

+ 2
- 0
frappe/public/js/frappe/form/control.js 파일 보기

@@ -605,6 +605,8 @@ frappe.ui.form.ControlDate = frappe.ui.form.ControlData.extend({
changeYear: true,
changeMonth: true,
yearRange: "-70Y:+10Y",
showOtherMonths: true,
selectOtherMonths: true
},
make_input: function() {
this._super();


+ 3
- 2
frappe/public/js/frappe/ui/toolbar/notifications.js 파일 보기

@@ -46,10 +46,11 @@ frappe.ui.notifications.update_notifications = function() {
}
});

// switch colour on the navbar
// switch colour on the navbar and disable if no notifications
$(".navbar-new-comments")
.html(frappe.ui.notifications.total > 20 ? '20+' : frappe.ui.notifications.total)
.toggleClass("navbar-new-comments-true", frappe.ui.notifications.total ? true : false);
.toggleClass("navbar-new-comments-true", frappe.ui.notifications.total ? true : false)
.parent().toggleClass("disabled", frappe.ui.notifications.total ? false : true);

}



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