From 88e7597e91bb03364d7846b160ff0b38b97c1be6 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 19 Apr 2021 13:10:04 +0200 Subject: [PATCH 1/1] Fixes #4189: theme box fails when entering second theme. --- src/redakcja/static/js/wiki/view_properties.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/redakcja/static/js/wiki/view_properties.js b/src/redakcja/static/js/wiki/view_properties.js index 32a7101b..e6ad1ca2 100644 --- a/src/redakcja/static/js/wiki/view_properties.js +++ b/src/redakcja/static/js/wiki/view_properties.js @@ -47,8 +47,10 @@ self.$pane = $("#side-properties"); $(document).on('click', '[x-node]', function(e) { - e.stopPropagation(); - self.edit(this); + if (!e.redakcja_edited) { + e.redakcja_edited = true; + self.edit(this); + } }); self.$pane.on('click', '#parents li', function(e) { -- 2.20.1