mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fix selectboxes didn't show server-side validation messages
This commit is contained in:
parent
9962ac3197
commit
76a19e86fb
@ -29,6 +29,8 @@ export declare class Et2InputWidgetInterface
|
|||||||
|
|
||||||
public set_readonly(boolean) : void;
|
public set_readonly(boolean) : void;
|
||||||
|
|
||||||
|
public set_validation_error(message : string | false) : void;
|
||||||
|
|
||||||
public isDirty() : boolean;
|
public isDirty() : boolean;
|
||||||
|
|
||||||
public resetDirty() : void;
|
public resetDirty() : void;
|
||||||
|
@ -1565,7 +1565,10 @@ export class etemplate2
|
|||||||
{
|
{
|
||||||
(<et2_tabbox><unknown>tmpWidget).activateTab(widget);
|
(<et2_tabbox><unknown>tmpWidget).activateTab(widget);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else if(typeof widget.set_validation_error == "function")
|
||||||
|
{
|
||||||
|
widget.set_validation_error(_response.data[id]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
egw().debug("warn", "Validation errors", _response.data);
|
egw().debug("warn", "Validation errors", _response.data);
|
||||||
|
Loading…
Reference in New Issue
Block a user