Skip to content

Commit

Permalink
Don't show the update attendees popup if not the organizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 18, 2015
1 parent cd5e993 commit 4d8609e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kronolith/js/kronolith.js
Expand Up @@ -4541,7 +4541,8 @@ KronolithCore = {

case 'kronolithEventSave':
if (!elt.disabled) {
if ($F('kronolithEventAttendees') && $F('kronolithEventId')) {
if ($F('kronolithEventAttendees') && $F('kronolithEventId')
&& !$F('kronolithEventOrganizer')) {
$('kronolithEventSendUpdates').setValue(0);
$('kronolithEventDiv').hide();
$('kronolithUpdateDiv').show();
Expand Down Expand Up @@ -4649,8 +4650,7 @@ KronolithCore = {

if (id != 'kronolithEventSendCancellationNo'
&& id != 'kronolithEventSendCancellationYes'
&& $F('kronolithEventAttendees')) {

&& $F('kronolithEventAttendees') && !$F('kronolithEventOrganizer')) {
$('kronolithDeleteDiv').hide();
$('kronolithCancellationDiv').show();
e.stop();
Expand Down Expand Up @@ -5410,7 +5410,7 @@ KronolithCore = {
}.bind(this));
}.bind(this);

if (event.value.mt) {
if (event.value.mt && event.value.oy) {
$('kronolithEventDiv').hide();
$('kronolithUpdateDiv').show();
RedBox.showHtml($('kronolithEventDialog').show());
Expand Down Expand Up @@ -5589,7 +5589,7 @@ KronolithCore = {
this.loadEventsCallback(r, false);
}.bind(this);

if (event.value.mt) {
if (event.value.mt && event.value.oy) {
$('kronolithEventDiv').hide();
$('kronolithUpdateDiv').show();
RedBox.showHtml($('kronolithEventDialog').show());
Expand Down

0 comments on commit 4d8609e

Please sign in to comment.