From 55bcb58f4c2c9d94375a828ae184db7e55fe6806 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 14 Feb 2015 19:10:16 +0000 Subject: [PATCH] documents panel: use isEmpty ArrayInput option --- static/js/documentsPanel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/documentsPanel.js b/static/js/documentsPanel.js index 5d36a517..aa430e1c 100644 --- a/static/js/documentsPanel.js +++ b/static/js/documentsPanel.js @@ -715,6 +715,9 @@ pandora.ui.documentsPanel = function(options) { }); return $input; }, + isEmpty: function(value) { + return value[1] === ''; + }, label: Ox._('Entities'), setWidth: function(width) { $input.options('elements')[1].options({