From a4505ac34560bd4858f3f32f299861c4cc78f564 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 16 Dec 2014 21:05:33 +0000 Subject: [PATCH] use ui.part.entities --- static/js/entityDialog.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/static/js/entityDialog.js b/static/js/entityDialog.js index 4f19b8fbb..c787a1570 100644 --- a/static/js/entityDialog.js +++ b/static/js/entityDialog.js @@ -22,10 +22,13 @@ pandora.ui.entityDialog = function() { }) .bindEvent({ close: function() { - pandora.UI.set({entity: ''}); + pandora.UI.set({ + entity: '', + page: '' + }); delete pandora.$ui.entityDialog; }, - pandora_entity: function(data) { + 'pandora_part.entities': function(data) { if (data.value) { setTitle(); setContent(); @@ -39,8 +42,8 @@ pandora.ui.entityDialog = function() { setContent(); function setContent() { - ui.entity && pandora.entity({ - id: ui.entity, + ui.part.entities && pandora.entity({ + id: ui.part.entities, view: 'entity' }, function(html) { $content.html(html); @@ -49,7 +52,7 @@ pandora.ui.entityDialog = function() { function setTitle() { ui.entity && pandora.api.getEntity({ - id: ui.entity + id: ui.part.entities }, function(result) { that.options({title: result.data.name}); }); @@ -57,4 +60,4 @@ pandora.ui.entityDialog = function() { return that; -}; \ No newline at end of file +};