From 618f07452c2dc9ad44c002efa1e2e92cb49a2388 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 21 Nov 2014 15:16:00 +0000 Subject: [PATCH] update entities dialog (scroll, list update on name edit --- static/js/entitiesDialog.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/static/js/entitiesDialog.js b/static/js/entitiesDialog.js index 1dfe62ec..cbf79bf3 100644 --- a/static/js/entitiesDialog.js +++ b/static/js/entitiesDialog.js @@ -131,7 +131,8 @@ pandora.ui.entitiesDialog = function(options) { resize: updateList }), - $entity = Ox.Element(), + $entity = Ox.Element() + .css({overflowY: 'auto'}), $itemMenu = Ox.MenuButton({ items: [ @@ -379,7 +380,9 @@ pandora.ui.entitiesDialog = function(options) { pandora.api.editEntity(Ox.extend({ id: id }, key.id, data.value), function(result) { - // ... + if (key.id == 'name') { + $list.value(id, {name: result.data.name}); + } }); } })