Skip to content

Commit

Permalink
Bug: 14281 Rebuild resource list when displaying resource group dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Mar 8, 2016
1 parent 7ed0563 commit 0fe60b9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions kronolith/js/kronolith.js
Expand Up @@ -3135,6 +3135,9 @@ KronolithCore = {
}
newCalendar = true;
}
if (type == 'resourcegroup') {
this.updateResourcegroupSelect();
}
if (newCalendar) {
switch (type) {
case 'internal':
Expand Down Expand Up @@ -3306,6 +3309,18 @@ KronolithCore = {
}
},

/**
* Updates the select list in the resourcegroup calendar dialog.
*/
updateResourcegroupSelect: function()
{
$('kronolithCalendarresourcegroupmembers').update();
$H(Kronolith.conf.calendars.resource).each(function(r) {
var o = new Element('option', { value: r.value.id }).update(r.value.name);
$('kronolithCalendarresourcegroupmembers').insert(o);
});
},

/**
* Handles clicks on the radio boxes of the basic permissions screen.
*
Expand Down

0 comments on commit 0fe60b9

Please sign in to comment.