Změny dokumentu Tree Macro
Naposledy upravil David Brazda 11.01.2021 09:23
Popis verze:
Install extension [org.xwiki.platform:xwiki-platform-tree-macro/12.9]
Přehled
-
Objects (1 změněno, 0 přidáno, 0 odstraněno)
Rozpis
- XWiki.JavaScriptExtension[0]
-
- Kód
-
... ... @@ -2,8 +2,7 @@ 2 2 $(document).ready(function(){ 3 3 $("a").click(function(ev){ 4 4 ev.preventDefault(); 5 - $("#contentcolumn").load(this.href + " #contentcolumn" ); 6 - alert("clicked AAA:"+this.href); 5 + alert("clicked:"+this.href); 7 7 });//click 8 8 }),//ready 9 9 require(['tree'], function($) { ... ... @@ -15,8 +15,9 @@ 15 15 e.stopPropagation(); 16 16 e.stopImmediatePropagation(); 17 17 $("#contentcolumn").load(this.href + " #contentcolumn" ); 18 - return false; 19 19 alert("activated:"+this.href); 18 + return false; 19 + 20 20 });//onclick 21 21 });//ready 22 22 });//require