From fee30fa1721e127da6c3b848231a9c94ad1ced71 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 5 Nov 2010 23:56:26 +0100 Subject: [PATCH 1/1] cleanup code and remove unsused table layout --- templates/conference/Work.html.ep | 34 ++++--------------------------- 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/templates/conference/Work.html.ep b/templates/conference/Work.html.ep index 7ca50ee..d54b824 100644 --- a/templates/conference/Work.html.ep +++ b/templates/conference/Work.html.ep @@ -31,7 +31,9 @@ console.debug( 'hash_change', id, this.work._id ); var s_id = work.symposium._id || work._id; // first work doesn't have symposium._id, but we used same _id console.debug( 'load symposium ', s_id ); - self.symposium = self.Symposium.get({ _id: s_id }, function() { self.work._changes-- }); + self.symposium = self.Symposium.get({ _id: s_id }, function() { + self.work._changes--; + }); } }); } @@ -43,8 +45,7 @@ console.debug( 'load symposium ', s_id ); var current_symposium = null; if ( this.work && this.work.type == 'symposium' ) { current_symposium = this.work.symposium; - if ( this.work._id ) current_symposium.work_nr++; - // if is required because reset is called twice -- once with saved records and once with new empty one + if ( this.work._id ) current_symposium.work_nr++; // only if saved console.debug( 'current_symposium', current_symposium, this.work ) } this.work = new this.Work( this.master ); @@ -137,33 +138,6 @@ Works which are part of this symposium: [Add another author] -
-- 2.20.1