prefill all fields with invalid empty values
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 3 Nov 2010 22:26:59 +0000 (23:26 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 3 Nov 2010 22:26:59 +0000 (23:26 +0100)
this will reset form correctly

templates/conference/Work.html.ep

index 477df51..1870265 100644 (file)
@@ -8,7 +8,7 @@ function Work($resource){
                title: '',
                abstract: '',
                authors:[ { name:'', surname:'', inst:'', email:'' } ],
                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();
        };
        this.Work = $resource( '/data/conference/Work/:_id', { _id:'' } );
        this.reset();