Fixes #4189: theme box fails when entering second theme.
authorRadek Czajka <rczajka@rczajka.pl>
Mon, 19 Apr 2021 11:10:04 +0000 (13:10 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Mon, 19 Apr 2021 11:10:04 +0000 (13:10 +0200)
src/redakcja/static/js/wiki/view_properties.js

index 32a7101..e6ad1ca 100644 (file)
             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) {