bugfix
This commit is contained in:
parent
79fedf7d3b
commit
1b52a701eb
@ -113,6 +113,11 @@ bricks.FormBody = class extends bricks.VScrollPanel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
submit_changed: false
|
||||||
|
fields
|
||||||
|
submit_url
|
||||||
|
*/
|
||||||
bricks.FormBase = class extends bricks.Layout {
|
bricks.FormBase = class extends bricks.Layout {
|
||||||
constructor(opts){
|
constructor(opts){
|
||||||
super(opts);
|
super(opts);
|
||||||
@ -247,8 +252,10 @@ bricks.FormBase = class extends bricks.Layout {
|
|||||||
if (d[name] === null){
|
if (d[name] === null){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (name != 'id' && this.origin_data[name] == d[name]){
|
if (this.submit_changed){
|
||||||
continue;
|
if (name != 'id' && this.origin_data[name] == d[name]){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
w.set_formdata(data);
|
w.set_formdata(data);
|
||||||
changed = true;
|
changed = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user