From 7741c860792d247a16cda640b3338e6e35ab91a6 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 17 Dec 2014 16:18:22 +0000 Subject: [PATCH] update entities dialog --- static/js/entitiesDialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/entitiesDialog.js b/static/js/entitiesDialog.js index 8e2ae9662..9211e8c7e 100644 --- a/static/js/entitiesDialog.js +++ b/static/js/entitiesDialog.js @@ -7,11 +7,11 @@ pandora.ui.entitiesDialog = function(options) { var dialogHeight = Math.round((window.innerHeight - 48) * 0.9), dialogWidth = Math.round(window.innerWidth * 0.9), - selected = [], ui = pandora.user.ui, type = ui.entitiesType || ( pandora.site.entities.length ? pandora.site.entities[0].id : '' ), + selected = ui.entitiesSelection[type] || []; $entitiesSelect = Ox.Select({ items: pandora.site.entities.map(function(type) { @@ -89,6 +89,7 @@ pandora.ui.entitiesDialog = function(options) { }, sort: [{key: 'name', operator: '+'}], scrollbarVisible: true, + selected: selected, unique: 'id', width: 256 - Ox.SCROLLBAR_SIZE })