update entities type if changed via UI, fixes #2668

This commit is contained in:
j 2015-02-09 17:03:54 +00:00
parent f680d8613e
commit a351ddfe0f

View File

@ -289,6 +289,14 @@ pandora.ui.entitiesDialog = function(options) {
// resize: ...
pandora_entitiesselection: function() {
selectEntities();
},
pandora_entitiestype: function() {
type = ui.entitiesType || (
pandora.site.entities.length ? pandora.site.entities[0].id : ''
);
$entitiesSelect.options({value: type});
$list.reloadList();
selectEntities();
}
});