소스 검색

[minor] add clear in msgpring

version-14
Rushabh Mehta 8 년 전
부모
커밋
25dcdd2462
1개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  1. +8
    -3
      frappe/public/js/frappe/ui/messages.js

+ 8
- 3
frappe/public/js/frappe/ui/messages.js 파일 보기

@@ -137,11 +137,16 @@ frappe.msgprint = function(msg, title) {
data.message = '';
}

if(data.message.search(/<br>|<p>|<li>/)==-1)
if(data.message.search(/<br>|<p>|<li>/)==-1) {
msg = replace_newlines(data.message);
}


var msg_exists = msg_dialog.msg_area.html();
if(data.clear) {
msg_dialog.msg_area.empty();
var msg_exists = false;
} else {
var msg_exists = msg_dialog.msg_area.html();
}

if(data.title || !msg_exists) {
// set title only if it is explicitly given


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