beginning of displaying form errors, need to keep working on this.
This commit is contained in:
parent
b2828d466d
commit
dbe160c5d9
3 changed files with 19 additions and 2 deletions
|
@ -460,8 +460,9 @@ var AIRTIME = (function(AIRTIME) {
|
|||
$.post(url, data, function(json) {
|
||||
|
||||
//TODO put errors on form.
|
||||
if (json.error !== undefined) {
|
||||
|
||||
if (json.form !== undefined) {
|
||||
var $newForm = $(json.form);
|
||||
$hisDialogEl.html($newForm.html());
|
||||
}
|
||||
else {
|
||||
removeHistoryDialog();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue