From 750d58ce4fb5a64dcef85328801dd2384a4254c3 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 19 Nov 2014 19:13:17 +0000 Subject: [PATCH] when adding entity, send type --- static/js/entitiesDialog.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/entitiesDialog.js b/static/js/entitiesDialog.js index e09ff081..801fbe93 100644 --- a/static/js/entitiesDialog.js +++ b/static/js/entitiesDialog.js @@ -135,7 +135,9 @@ pandora.ui.entitiesDialog = function(options) { .bindEvent({ click: function(data) { if (data.id == 'add') { - pandora.api.addEntity({}, function(result) { + pandora.api.addEntity({ + type: type + }, function(result) { Ox.print('$$$$', result); Ox.Request.clearCache('findEntities'); $list.reloadList().options({