beginning of displaying form errors, need to keep working on this.

This commit is contained in:
Naomi 2013-08-23 15:52:49 -04:00
parent b2828d466d
commit dbe160c5d9
3 changed files with 19 additions and 2 deletions

View file

@ -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();