From 681ae78d8fd813a6f28c500e91a371f533a756ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Tue, 11 Dec 2018 00:17:56 +0100 Subject: [PATCH] we can make the js linter even happier --- src/c3nav/editor/static/editor/js/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/editor/static/editor/js/editor.js b/src/c3nav/editor/static/editor/js/editor.js index 290c180a..94e73fcf 100644 --- a/src/c3nav/editor/static/editor/js/editor.js +++ b/src/c3nav/editor/static/editor/js/editor.js @@ -532,7 +532,7 @@ editor = { $(this).val(''); if (!confirm('Are you sure you want to copy settings from '+value.name+'?')) return; delete value.name; - for (key in value) { + for (var key in value) { if (value.hasOwnProperty(key)) content.find('[name='+key+']').val(value[key]); } editor._source_image_calculate_scale();