diff --git a/css/legacy/body.css b/css/legacy/body.css index 9926f4c99e..b9d4140d89 100644 --- a/css/legacy/body.css +++ b/css/legacy/body.css @@ -135,7 +135,7 @@ div.fix_ff_cursor { overflow: auto; } div.comment { color: #444; } .small { - font-size: 11px; + font-size: 12px; } .help { diff --git a/css/legacy/forms.css b/css/legacy/forms.css index 972e971e45..ede2a20f73 100644 --- a/css/legacy/forms.css +++ b/css/legacy/forms.css @@ -12,6 +12,13 @@ div.form-title { margin-right: 7px; } +div.form-intro-area { + background-color: #ffe; + padding: 9px 9px 0px 9px; + border: 1px dashed #fc7; + margin-bottom: 15px; +} + div.form-section-head { margin: 11px -15px 3px -15px; border-top: 1px solid #ccc; diff --git a/js/legacy/widgets/form/form.js b/js/legacy/widgets/form/form.js index 8bbe98f66e..7519c48f7e 100644 --- a/js/legacy/widgets/form/form.js +++ b/js/legacy/widgets/form/form.js @@ -317,7 +317,13 @@ _f.Frm.prototype.set_intro = function(txt) { this.intro_area = $('
') .insertBefore(this.page_layout.body.firstChild); } - this.intro_area.html(txt); + if(txt) { + this.intro_area.html(txt); + } else { + this.intro_area.remove(); + this.intro_area = null; + } + } _f.Frm.prototype.setup_fields_std = function() { @@ -624,8 +630,6 @@ _f.Frm.prototype.refresh_footer = function() { } } -// -------------------------------------------------------------------------------------- - _f.Frm.prototype.refresh_fields = function() { // refresh fields for(var i=0; i'; + args.icon = ''; } this.buttons[label] = $(repl('', args))