From e0fd7a0e9bb77ea8f97f528a81b5980371c09e64 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 7 Nov 2010 21:49:21 +0100 Subject: [PATCH] registration.person is preserved on next symposium --- templates/conference/Registration.html.ep | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/templates/conference/Registration.html.ep b/templates/conference/Registration.html.ep index 543272c..8511e62 100644 --- a/templates/conference/Registration.html.ep +++ b/templates/conference/Registration.html.ep @@ -4,10 +4,10 @@ if (typeof (console) === 'undefined') console = { debug: function() {} }; // moc function Registration($resource){ this.master = { - name: '', surname: '', inst: '', email: '', - + person: { + name: '', surname: '', inst: '', email: '', + }, type: '', // just attending - work: { title: '', abstract: '', @@ -46,8 +46,10 @@ console.debug( 'load symposium ', s_id ); reset: function() { console.debug( this.Registration ); var current_symposium = null; + var current_person = null; if ( this.registration && this.registration.type == 'symposium' ) { current_symposium = this.registration.symposium; + current_person = this.registration.person; if ( this.registration.$id ) current_symposium.work_nr++; // only if saved console.debug( 'current_symposium', current_symposium, this.registration ) } @@ -55,6 +57,7 @@ console.debug( 'current_symposium', current_symposium, this.registration ) if ( current_symposium ) { this.registration.symposium = current_symposium; this.registration.type = 'symposium'; + this.registration.person = current_person; } this.last_saved = {}; console.debug( 'reset', current_symposium, this.registration, this.$location.hashPath ); @@ -224,11 +227,11 @@ input.ng-validation-error {
- - + + - - + +
-- 2.20.1