handle fresh ui settings

This commit is contained in:
rolux 2014-11-20 20:31:41 +00:00
parent fb3ecb9bd9
commit 898f73e15f

View file

@ -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;