From 8096bc6a20c1e3c5ce8d2fcf2a81ed9e9a48052c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 15 Jan 2015 12:13:41 +0100 Subject: [PATCH] import json should work with in/out/value too --- static/js/importAnnotationsDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/importAnnotationsDialog.js b/static/js/importAnnotationsDialog.js index 6a3fd754..dced6927 100644 --- a/static/js/importAnnotationsDialog.js +++ b/static/js/importAnnotationsDialog.js @@ -151,7 +151,7 @@ pandora.ui.importAnnotationsDialog = function(options) { [annotations.length] )); annotations = annotations.map(function(annotation) { - var value = Ox.sanitizeHTML(annotation.text); + var value = Ox.sanitizeHTML(annotation.text ? annotation.text : annotation.value); if (format == 'srt') { value = value.replace(/\n/g, '\n') .replace(/\n\n/g, '
\n')