forked from 0x2620/pandora
handle fresh ui settings
This commit is contained in:
parent
fb3ecb9bd9
commit
898f73e15f
1 changed files with 6 additions and 2 deletions
|
@ -297,7 +297,9 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderEntity() {
|
function renderEntity() {
|
||||||
var id = ui.entitiesSelection['type'][0];
|
var id = ui.entitiesSelection['type']
|
||||||
|
? ui.entitiesSelection['type'][0]
|
||||||
|
: null;
|
||||||
if (!id) {
|
if (!id) {
|
||||||
$entity.empty();
|
$entity.empty();
|
||||||
return;
|
return;
|
||||||
|
@ -315,7 +317,9 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderForm() {
|
function renderForm() {
|
||||||
var id = ui.entitiesSelection['type'][0];
|
var id = ui.entitiesSelection['type']
|
||||||
|
? ui.entitiesSelection['type'][0]
|
||||||
|
: null;
|
||||||
if (!id) {
|
if (!id) {
|
||||||
$form.empty();
|
$form.empty();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue