Z verze
změnil(a) David Brazda
k 10.01.2021 13:31
Na verzi < 41.1 >
změnil(a) David Brazda
k 10.01.2021 13:55
< >
Popis verze: Install extension [org.xwiki.platform:xwiki-platform-tree-macro/12.9]

Přehled

Rozpis

XWiki.JavaScriptExtension[0]
Kód
... ... @@ -6,7 +6,8 @@
6 6   });//click
7 7   }),//ready
8 8   require(['tree'], function($) {
9 - $('.jstree-xwiki').on("click", ".jstree-anchor", function (e, data) {
9 + $(document).ready(function(){
10 + $('.jstree-xwiki').on("click", ".jstree-clicked", function (e, data) {
10 10   e.preventDefault();
11 11   e.stopPropagation();
12 12   e.stopImmediatePropagation();
... ... @@ -13,6 +13,7 @@
13 13   $("#contentcolumn").load(this.href + " #contentcolumn" );
14 14   return false;
15 15   alert("clicked:"+this.href);
16 - });
17 - });
17 + });//onclick
18 + });//ready
19 + });//require
18 18  });