Änderungen von Dokument Icon Picker Macro


Von Version 5.1
bearbeitet von gru
am 28.07.2023, 15:05
Änderungskommentar: Migrated property [type] from class [XWiki.WikiMacroParameterClass]
Auf Version 1.1
bearbeitet von XIMA Admin
am 14.01.2021, 13:45
Änderungskommentar: Install extension [org.xwiki.platform:xwiki-platform-icon-ui/12.10.2]

Zusammenfassung

Details

Seiteneigenschaften
Dokument-Autor
... ... @@ -1,1 +1,1 @@
1 -XWiki.gru
1 +XWiki.ximaadmin
XWiki.WikiMacroClass[0]
Cached
... ... @@ -1,1 +1,0 @@
1 -Nein
Asynchrones Rendern
... ... @@ -1,1 +1,0 @@
1 -Nein
Makro-Code
... ... @@ -19,13 +19,13 @@
19 19   require(['jquery', 'xwiki-icon-picker'], function($) {
20 20   var options = {};
21 21   #if($xcontext.macro.params.parameterNames.contains('prefix'))
22 - options['prefix'] = $jsontool.serialize($xcontext.macro.params.prefix);
22 + options['prefix'] = '$escapetool.javascript($xcontext.macro.params.prefix)';
23 23   #end
24 24   #if("$!xcontext.macro.params.id" != '')
25 - $($jsontool.serialize("#$escapetool.css($xcontext.macro.params.id)")).xwikiIconPicker(options);
25 + $('#${xcontext.macro.params.id}').xwikiIconPicker(options);
26 26   #end
27 27   #if("$!xcontext.macro.params.get('class')" != '')
28 - $($jsontool.serialize(".$escapetool.css($xcontext.macro.params.get('class'))")).xwikiIconPicker(options);
28 + $('.${xcontext.macro.params.get('class')}').xwikiIconPicker(options);
29 29   #end
30 30   });
31 31  </script>
Standardkategorie
... ... @@ -1,0 +1,1 @@
1 +Development
Default categories
... ... @@ -1,1 +1,0 @@
1 -Development