@@ -719,6 +719,8 @@ $(function() {
719719
720720 $(" #dialog-form" ).dialog({
721721 buttons: {
722+ // Reduced options to simplify interface
723+ /*
722724 ' { { " ExportiCalConfidential" |get_lang } } ' : function() {
723725 url = " { { _p.web_main } } calendar/ical_export.php?id=" + calEvent.id+' &course_id=' +calEvent.course_id+" &class=confidential" ;
724726 window.location.href = url;
@@ -727,6 +729,7 @@ $(function() {
727729 url = " { { _p.web_main } } calendar/ical_export.php?id=" + calEvent.id+' &course_id=' +calEvent.course_id+" &class=private" ;
728730 window.location.href = url;
729731 } ,
732+ */
730733 ' { { " ExportiCalPublic" |get_lang } } ' : function() {
731734 url = " { { _p.web_main } } calendar/ical_export.php?id=" + calEvent.id+' &course_id=' +calEvent.course_id+" &class=public" ;
732735 window.location.href = url;
@@ -828,7 +831,18 @@ $(function() {
828831 $(" #dialog-form" ).dialog(' close' );
829832 }
830833 } );
831- }
834+ } ,
835+ {% if (agenda_collective_invitations or agenda_event_subscriptions) and ' personal' == type %}
836+ ' { { " ExportUsers" | get_lang } } ' : function() {
837+ if (isInvitation(calEvent)) {
838+ url = " { { _p.web_main } } calendar/exportEventMembers.php?a=export_invitees&id=" + calEvent.id;
839+ } else {
840+ url = " { { _p.web_main } } calendar/exportEventMembers.php?a=export_subscribers&id=" + calEvent.id;
841+ }
842+ window.location.href = url;
843+ } ,
844+ {% endif %}
845+
832846 } ,
833847 close: function() {
834848 $(" #title_edit" ).hide();
@@ -963,6 +977,8 @@ $(function() {
963977 {% endif %}
964978
965979 var buttons = {
980+ // Reduced options to simplify interface
981+ /*
966982 ' { { " ExportiCalConfidential" |get_lang} } ' : function() {
967983 url = " ical_export.php?id=" + calEvent.id+' &course_id=' +calEvent.course_id+" &class=confidential" ;
968984 window.location.href = url;
@@ -971,6 +987,7 @@ $(function() {
971987 url = " ical_export.php?id=" + calEvent.id+' &course_id=' +calEvent.course_id+" &class=private" ;
972988 window.location.href = url;
973989 } ,
990+ */
974991 ' { { " ExportiCalPublic" |get_lang} } ' : function() {
975992 url = " ical_export.php?id=" + calEvent.id+' &course_id=' +calEvent.course_id+" &class=public" ;
976993 window.location.href = url;
@@ -1074,6 +1091,16 @@ $(function() {
10741091
10751092 { { agenda_reminders_js } }
10761093
1094+ function isInvitation (calEvent) {
1095+ if ((calEvent.invitees && calEvent.invitees.length)
1096+ || ! calEvent.subscription_visibility
1097+ ) {
1098+ return true ;
1099+ } else {
1100+ return false ;
1101+ }
1102+ }
1103+
10771104 function showSubcriptionsContainer (calEvent) {
10781105 if ((calEvent.invitees && calEvent.invitees.length)
10791106 || ! calEvent.subscription_visibility
0 commit comments