bugfix
This commit is contained in:
parent
8b551128e0
commit
9db92d6a4e
@ -25,6 +25,7 @@ bricks.FieldGroup = class {
|
|||||||
dc.set_id(fields[i].name+'_box');
|
dc.set_id(fields[i].name+'_box');
|
||||||
if (fields[i].nonuse))
|
if (fields[i].nonuse))
|
||||||
dc.disabled(true);
|
dc.disabled(true);
|
||||||
|
dc.hide();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var box;
|
var box;
|
||||||
@ -49,6 +50,7 @@ bricks.FieldGroup = class {
|
|||||||
box.set_id(fields[i].name + '_box')
|
box.set_id(fields[i].name + '_box')
|
||||||
if (fields[i].nonuse))
|
if (fields[i].nonuse))
|
||||||
box.disabled(true);
|
box.disabled(true);
|
||||||
|
box.hide();
|
||||||
}
|
}
|
||||||
var w = Input.factory(fields[i]);
|
var w = Input.factory(fields[i]);
|
||||||
if (w){
|
if (w){
|
||||||
@ -250,6 +252,8 @@ bricks.FormBase = class extends bricks.Layout {
|
|||||||
var w = bricks.getWidgetById(field_name + '_box', this);
|
var w = bricks.getWidgetById(field_name + '_box', this);
|
||||||
if (! w) return;
|
if (! w) return;
|
||||||
w.disabled(flg);
|
w.disabled(flg);
|
||||||
|
if (flg) w.hide();
|
||||||
|
else w.show();
|
||||||
if (flg) return;
|
if (flg) return;
|
||||||
this.exclusionfields.forEach(arr =>{
|
this.exclusionfields.forEach(arr =>{
|
||||||
if (arr.include(field_name)){
|
if (arr.include(field_name)){
|
||||||
@ -257,7 +261,8 @@ bricks.FormBase = class extends bricks.Layout {
|
|||||||
if (x!=field_name){
|
if (x!=field_name){
|
||||||
var w1 = bricks.getWidgetById(x + '_box', this);
|
var w1 = bricks.getWidgetById(x + '_box', this);
|
||||||
if (w1) {
|
if (w1) {
|
||||||
w1.disabled(! flg);
|
w1.disabled(true);
|
||||||
|
w1.hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user