Revert "10319: Status-change of attendees in events | Status von Teilnehmern ändern"
authorCornelius Weiß <mail@corneliusweiss.de>
Tue, 11 Aug 2015 15:35:12 +0000 (17:35 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Wed, 12 Aug 2015 07:57:38 +0000 (09:57 +0200)
This reverts commit c887055e0adcfcc02b195b5e5248a31f732c1dd0.

@see https://forge.tine20.org/view.php?id=11136

Change-Id: I3623242d5c5aefad2b08730251dec40e3ff68558
Reviewed-on: http://gerrit.tine20.com/customers/2103
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Calendar/js/AttendeeGridPanel.js

index e916de2..2095857 100644 (file)
@@ -223,7 +223,7 @@ Tine.Calendar.AttendeeGridPanel = Ext.extend(Ext.grid.EditorGridPanel, {
     
     onAfterAttenderEdit: function(o) {
         switch (o.field) {
-            case 'user_id':
+            case 'user_id' :
                 // detect duplicate entry
                 // TODO detect duplicate emails, too 
                 var isDuplicate = false;
@@ -254,14 +254,13 @@ Tine.Calendar.AttendeeGridPanel = Ext.extend(Ext.grid.EditorGridPanel, {
                     o.record.explicitlyAdded = true;
                     o.record.set('checked', true);
                     
-                    var newAttender = new Tine.Calendar.Model.Attender(Tine.Calendar.Model.Attender.getDefaultData(), 'new-' + Ext.id());
-
+                    var newAttender = new Tine.Calendar.Model.Attender(Tine.Calendar.Model.Attender.getDefaultData(), 'new-' + Ext.id() );
                     this.store.add([newAttender]);
                     this.startEditing(o.row +1, o.column);
                 }
                 break;
                 
-            case 'user_type':
+            case 'user_type' :
                 this.startEditing(o.row, o.column +1);
                 break;
             
@@ -489,8 +488,6 @@ Tine.Calendar.AttendeeGridPanel = Ext.extend(Ext.grid.EditorGridPanel, {
         Ext.each(attendee, function(attender) {
 
             var record = new Tine.Calendar.Model.Attender(attender, attender.id);
-            record.set('status_authkey', 1);
-
             this.store.addSorted(record);
             
             if (attender.displaycontainer_id  && this.record.get('container_id') && attender.displaycontainer_id.id == this.record.get('container_id').id) {
@@ -500,8 +497,7 @@ Tine.Calendar.AttendeeGridPanel = Ext.extend(Ext.grid.EditorGridPanel, {
         
         if (record.get('editGrant')) {
             // Add new attendee
-            var record = new Tine.Calendar.Model.Attender(Tine.Calendar.Model.Attender.getDefaultData(), 'new-' + Ext.id());
-            this.store.add([record]);
+            this.store.add([new Tine.Calendar.Model.Attender(Tine.Calendar.Model.Attender.getDefaultData(), 'new-' + Ext.id() )]);
         }
     },