Skip to content

Commit

Permalink
These fields are only set on internal calendars.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed May 4, 2017
1 parent d4ac405 commit b34c41e
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions kronolith/js/kronolith.js
Expand Up @@ -3259,18 +3259,20 @@ KronolithCore = {
}

if (newCalendar || info.owner) {
if (system || (info && info.system)) {
$('kronolith' + type + 'Owner').hide();
$('kronolithPOwner' + type + 'Input').hide();
$('kronolithCalendar' + type + 'System').setValue(1);
} else {
$('kronolith' + type + 'Owner').show();
$('kronolithPOwner' + type + 'Input').show();
if ($('kronolithCalendar' + type + 'System')) {
$('kronolithCalendar' + type + 'System').setValue(0);
}
}
if (type == 'internal' || type == 'tasklists' || type == 'resource') {
if (system || (info && info.system)) {
$('kronolith' + type + 'Owner').hide();
$('kronolithPOwner' + type + 'Input').hide();
if ($('kronolithCalendar' + type + 'System')) {
$('kronolithCalendar' + type + 'System').setValue(1);
}
} else {
$('kronolith' + type + 'Owner').show();
$('kronolithPOwner' + type + 'Input').show();
if ($('kronolithCalendar' + type + 'System')) {
$('kronolithCalendar' + type + 'System').setValue(0);
}
}
this.updateGroupDropDown([['kronolithC' + type + 'PGList', this.updateGroupPerms.bind(this, type)],
['kronolithC' + type + 'PGNew']]);
$('kronolithC' + type + 'PBasic').show();
Expand Down

0 comments on commit b34c41e

Please sign in to comment.