use ui.part.entities
This commit is contained in:
parent
2a31d2e65a
commit
a4505ac345
1 changed files with 9 additions and 6 deletions
|
@ -22,10 +22,13 @@ pandora.ui.entityDialog = function() {
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
close: function() {
|
close: function() {
|
||||||
pandora.UI.set({entity: ''});
|
pandora.UI.set({
|
||||||
|
entity: '',
|
||||||
|
page: ''
|
||||||
|
});
|
||||||
delete pandora.$ui.entityDialog;
|
delete pandora.$ui.entityDialog;
|
||||||
},
|
},
|
||||||
pandora_entity: function(data) {
|
'pandora_part.entities': function(data) {
|
||||||
if (data.value) {
|
if (data.value) {
|
||||||
setTitle();
|
setTitle();
|
||||||
setContent();
|
setContent();
|
||||||
|
@ -39,8 +42,8 @@ pandora.ui.entityDialog = function() {
|
||||||
setContent();
|
setContent();
|
||||||
|
|
||||||
function setContent() {
|
function setContent() {
|
||||||
ui.entity && pandora.entity({
|
ui.part.entities && pandora.entity({
|
||||||
id: ui.entity,
|
id: ui.part.entities,
|
||||||
view: 'entity'
|
view: 'entity'
|
||||||
}, function(html) {
|
}, function(html) {
|
||||||
$content.html(html);
|
$content.html(html);
|
||||||
|
@ -49,7 +52,7 @@ pandora.ui.entityDialog = function() {
|
||||||
|
|
||||||
function setTitle() {
|
function setTitle() {
|
||||||
ui.entity && pandora.api.getEntity({
|
ui.entity && pandora.api.getEntity({
|
||||||
id: ui.entity
|
id: ui.part.entities
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
that.options({title: result.data.name});
|
that.options({title: result.data.name});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue