fix entity dialog
This commit is contained in:
parent
3aa9f19d31
commit
2a31d2e65a
1 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.entityDialog = function(options) {
|
pandora.ui.entityDialog = function() {
|
||||||
|
|
||||||
var ui = pandora.user.ui,
|
var ui = pandora.user.ui,
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ pandora.ui.entityDialog = function(options) {
|
||||||
setContent();
|
setContent();
|
||||||
|
|
||||||
function setContent() {
|
function setContent() {
|
||||||
pandora.entity({
|
ui.entity && pandora.entity({
|
||||||
id: ui.entity,
|
id: ui.entity,
|
||||||
view: 'entity'
|
view: 'entity'
|
||||||
}, function(html) {
|
}, function(html) {
|
||||||
|
@ -48,7 +48,7 @@ pandora.ui.entityDialog = function(options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function setTitle() {
|
function setTitle() {
|
||||||
pandora.api.getEntity({
|
ui.entity && pandora.api.getEntity({
|
||||||
id: ui.entity
|
id: ui.entity
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
that.options({title: result.data.name});
|
that.options({title: result.data.name});
|
||||||
|
|
Loading…
Reference in a new issue