Z verze
změnil(a) David Brazda
k 10.01.2021 14:25
Na verzi < 46.1 >
změnil(a) David Brazda
k 10.01.2021 14:44
< >
Popis verze: Install extension [org.xwiki.platform:xwiki-platform-tree-macro/12.9]

Přehled

Rozpis

XWiki.JavaScriptExtension[0]
Kód
... ... @@ -2,7 +2,8 @@
2 2   $(document).ready(function(){
3 3   $("a").click(function(ev){
4 4   ev.preventDefault();
5 - alert("clicked:"+this.href);
5 + $("#contentcolumn").load(this.href + " #contentcolumn" );
6 + alert("clicked AAA:"+this.href);
6 6   });//click
7 7   }),//ready
8 8   require(['tree'], function($) {
... ... @@ -14,9 +14,8 @@
14 14   e.stopPropagation();
15 15   e.stopImmediatePropagation();
16 16   $("#contentcolumn").load(this.href + " #contentcolumn" );
18 + return false;
17 17   alert("activated:"+this.href);
18 - return false;
19 -
20 20   });//onclick
21 21   });//ready
22 22   });//require