From: Radek Czajka Date: Mon, 19 Apr 2021 11:10:04 +0000 (+0200) Subject: Fixes #4189: theme box fails when entering second theme. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/88e7597e91bb03364d7846b160ff0b38b97c1be6 Fixes #4189: theme box fails when entering second theme. --- 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) {