0 Votes

Changes for page Todolist Macro

Last modified by Ryan C on 2025/04/30 07:54

From version 6.1
edited by Ryan C
on 2025/04/24 10:21
Change comment: There is no comment for this version
To version 10.1
edited by Ryan C
on 2025/04/24 11:00
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -2,5 +2,6 @@
2 2  
3 3  {{todolist width="50%" center="1"}}
4 4  a thing|1
5 +a second thing|0
5 5  
6 6  {{/todolist}}
XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,22 +1,18 @@
1 1  requirejs.config({
2 - //By default load any module IDs from js/lib
3 - baseUrl: '${xwiki.getDocument("TodoLists.TodoListMacro").getURL("download")}/',
4 - //except, if the module ID starts with "app",
5 - //load it from the js/app directory. paths
6 - //config is relative to the baseUrl, and
7 - //never includes a ".js" extension since
8 - //the paths config could be for a directory.
9 - paths: {
2 + baseUrl: '${xwiki.getDocument("TodoLists.TodoListMacro").getURL("download")}/',
3 + paths: {
4 + 'jquery': 'https://code.jquery.com/jquery-1.10.2.min'
5 + },
6 + shim: {
7 + 'ember-data': {
8 + deps: ['ember', 'jquery']
10 10   },
11 - shim: {
12 - 'ember-data': {
13 - deps: ['ember', 'jquery']
14 - },
15 - 'ember': {
16 - deps: ['jquery']
17 - }
10 + 'ember': {
11 + deps: ['jquery']
18 18   }
13 + }
19 19  });
15 +
20 20  require(['jquery', 'handlebars-v1.2.1', 'ember-data', 'ember' ], function ($) {
21 21  
22 22  // create app
XWiki.WikiMacroClass[0]
Cached
... ... @@ -1,0 +1,1 @@
1 +No
Context elements
... ... @@ -1,0 +1,1 @@
1 +User
Asynchronous rendering
... ... @@ -1,0 +1,1 @@
1 +No