RESOLVED - # 5348: show rrule multiple options on iMIP recur invitations
authorCornelius Weiß <mail@corneliusweiss.de>
Fri, 13 Jan 2012 14:15:18 +0000 (15:15 +0100)
committerCornelius Weiß <mail@corneliusweiss.de>
Fri, 13 Jan 2012 14:15:18 +0000 (15:15 +0100)
response
http://forge.tine20.org/mantisbt/view.php?id=5348

tine20/Calendar/js/iMIPDetailsPanel.js

index 2cbcc85..2d8baf9 100644 (file)
@@ -94,7 +94,27 @@ Tine.Calendar.iMIPDetailsPanel = Ext.extend(Tine.Calendar.EventDetailsPanel, {
      * 
      * @param {String} status
      */
-    processIMIP: function(status) {
+    processIMIP: function(status, range) {
+        if (this.iMIPrecord.get('event').isRecurBase() && status != 'ACCEPTED' && !range) {
+            Tine.widgets.dialog.MultiOptionsDialog.openWindow({
+                title: this.app.i18n._('Reply to Recurring Event'),
+                questionText: this.app.i18n._('You are responding to an recurring event. What would you like to do?'),
+                height: 170,
+                scope: this,
+                options: [
+                    {text: this.app.i18n._('Responde to whole series'), name: 'series'},
+                    {text: this.app.i18n._('Do not responde'), name: 'cancel'}
+                ],
+                
+                handler: function(option) {
+                    if (option != 'cancel') {
+                        this.processIMIP(status, option);
+                    }
+                }
+            });
+            return;
+        }
+        
         Tine.log.debug('Tine.Calendar.iMIPDetailsPanel::processIMIP status: ' + status);
         this.getLoadMask().show();