Изменения документа AdminThemesSheet
Редактировал(а) Dmitriy Rybakov 20.06.2025, 16:36
От версии 3.1
отредактировано Dmitriy Rybakov
на 20.06.2025, 16:36
на 20.06.2025, 16:36
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-administration-ui/16.10.8]
К версии 1.1
отредактировано Admin xWiKi
на 15.10.2019, 13:19
на 15.10.2019, 13:19
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-administration-ui/11.8.1]
Сводка
-
Свойства страницы (2 изменено, 0 добавлено, 0 удалено)
-
Объекты (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Автор документа
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. rybakovds1 +XWiki.admin - Содержимое
-
... ... @@ -6,6 +6,22 @@ 6 6 'icontheme' : ['iconTheme'], 7 7 'skin': ['skin'] 8 8 }) 9 +### 10 +### Use the color theme displayer. 11 +### 12 +### It's needed because the XWikiPreferences class might not have been configured to use it, which is the case 13 +### when oldcore creates the class (it is not supposed to know that the Administration Application will be installed). 14 +### 15 +#if ($hasGlobalAdmin) 16 + #set ($class = $xwiki.getClass('XWiki.XWikiPreferences')) 17 + #foreach ($p in $class.XWikiClass.enabledProperties) 18 + #if ($p.name == 'colorTheme' && "$!p.customDisplay" == '') 19 + ## Add the custom displayer (it won't be saved but it will be used for the display of the current document) 20 + $p.setCustomDisplay('{{include reference="XWiki.ColorThemePropertyDisplayer" /}}') 21 + #break 22 + #end 23 + #end 24 +#end 9 9 {{/velocity}} 10 10 11 11 {{include reference="XWiki.AdminFieldsDisplaySheet" /}}
- XWiki.JavaScriptExtension[0]
-
- Код
-
... ... @@ -19,10 +19,10 @@ 19 19 self.init = function () { 20 20 self.update(); 21 21 // Update the button everytime the value of the input changes 22 - self.input. on('change',function() {22 + self.input.change(function () { 23 23 self.update(); 24 24 }); 25 - self.input. on('keyup',function() {25 + self.input.keyup(function () { 26 26 self.update(); 27 27 }); 28 28 };