From: Dobrica Pavlinusic Date: Wed, 3 Nov 2010 22:26:59 +0000 (+0100) Subject: prefill all fields with invalid empty values X-Git-Url: http://git.rot13.org/?p=angular-mojolicious.git;a=commitdiff_plain;h=061cd274629a16583ac6a5a287b1448ef7b2bccc prefill all fields with invalid empty values this will reset form correctly --- diff --git a/templates/conference/Work.html.ep b/templates/conference/Work.html.ep index 477df51..1870265 100644 --- a/templates/conference/Work.html.ep +++ b/templates/conference/Work.html.ep @@ -8,7 +8,7 @@ function Work($resource){ title: '', abstract: '', authors:[ { name:'', surname:'', inst:'', email:'' } ], - symposium: { authors: [ {name:''} ] }, + symposium: { authors: [ {name:'', surname:'', inst:'', email:''} ] }, }; this.Work = $resource( '/data/conference/Work/:_id', { _id:'' } ); this.reset();