From a351ddfe0f82a7c2cf2c5e4e34bdd514c843252a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 9 Feb 2015 17:03:54 +0000 Subject: [PATCH] update entities type if changed via UI, fixes #2668 --- static/js/entitiesDialog.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/js/entitiesDialog.js b/static/js/entitiesDialog.js index 84d1d0bd3..571d456d6 100644 --- a/static/js/entitiesDialog.js +++ b/static/js/entitiesDialog.js @@ -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(); } });