소스 검색

Lighter placeholder, grid backdrop fix #1012

version-14
Anand Doshi 10 년 전
부모
커밋
3940e4df2d
3개의 변경된 파일14개의 추가작업 그리고 10개의 파일을 삭제
  1. +4
    -3
      frappe/public/css/bootstrap.css
  2. +9
    -6
      frappe/public/js/frappe/dom.js
  3. +1
    -1
      frappe/public/js/frappe/form/grid.js

+ 4
- 3
frappe/public/css/bootstrap.css 파일 보기

@@ -2558,14 +2558,14 @@ output {
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 3px rgba(206, 213, 219, .6);
}
.form-control::-moz-placeholder {
color: #999;
color: #d1d8dd;
opacity: 1;
}
.form-control:-ms-input-placeholder {
color: #999;
color: #d1d8dd;
}
.form-control::-webkit-input-placeholder {
color: #999;
color: #d1d8dd;
}
.form-control[disabled],
.form-control[readonly],
@@ -6609,3 +6609,4 @@ h4.modal-title {
.navbar-search-icon {
color: #b8c2cb;
}
/*# sourceMappingURL=bootstrap.css.map */

+ 9
- 6
frappe/public/js/frappe/dom.js 파일 보기

@@ -71,22 +71,25 @@ frappe.dom = {
})
.appendTo("#body_div");

if (msg) {
freeze.html(repl('<div class="freeze-message-container"><div class="freeze-message">%(msg)s</div></div>',
{msg: msg}));
}
freeze.html(repl('<div class="freeze-message-container"><div class="freeze-message">%(msg)s</div></div>',
{msg: msg || ""}));

setTimeout(function() { freeze.addClass("in") }, 1);

} else {
$("#freeze").addClass("in");
}

frappe.dom.freeze_count++;
},
unfreeze: function() {
if(!frappe.dom.freeze_count)return; // anything open?
if(!frappe.dom.freeze_count) return; // anything open?
frappe.dom.freeze_count--;
if(!frappe.dom.freeze_count) {
var freeze = $('#freeze').removeClass("in");
setTimeout(function() { freeze.remove(); }, 150);
setTimeout(function() {
if(!frappe.dom.freeze_count) { freeze.remove(); }
}, 150);
}
},
save_selection: function() {


+ 1
- 1
frappe/public/js/frappe/form/grid.js 파일 보기

@@ -397,7 +397,7 @@ frappe.ui.form.GridRow = Class.extend({
if (show===undefined) show = !!!open_row;

// call blur
document.activeElement && document.activeElement.blur()
document.activeElement && document.activeElement.blur();

if(show && open_row) {
if(open_row==this) {


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