diff --git a/static/js/entitiesDialog.js b/static/js/entitiesDialog.js index 1c34ea17b..8980b61ed 100644 --- a/static/js/entitiesDialog.js +++ b/static/js/entitiesDialog.js @@ -345,17 +345,17 @@ pandora.ui.entitiesDialog = function(options) { .css({margin: '2px 2px 4px 2px'}) .appendTo($form), $input; - if (key.type == 'document') { + if (key.type === 'document') { $input = Ox.Input({autovalidate: /^[A-Z]+?$/}); - } else if (key.type == 'float') { + } else if (key.type === 'float') { $input = Ox.Input({type: 'float'}); - } else if (key.type == 'int') { + } else if (key.type === 'int') { $input = Ox.Input({type: 'int'}); - } else if (key.type == 'string') { + } else if (key.type === 'string') { $input = Ox.Input(); - } else if (key.type[0] == 'string') { + } else if (key.type[0] === 'string') { $input = Ox.ArrayInput(); - } else if (key.type == 'text') { + } else if (key.type === 'text') { $input = Ox.Input({ height: 248 - Ox.SCROLLBAR_SIZE, type: 'textarea' @@ -383,6 +383,10 @@ pandora.ui.entitiesDialog = function(options) { }); } + function selectEntities() { + // ... + } + function updateForm() { var width = $content.options('elements')[2].size - 8; $labels.forEach(function($label) {