Изменения документа Вложения
Редактировал(а) Андрей Ганьков 2024/01/24 04:38
От версии 8.1
отредактировано Андрей Ганьков
на 2023/02/19 22:19
на 2023/02/19 22:19
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/15.0]
К версии 11.1
отредактировано Андрей Ганьков
на 2023/06/02 10:56
на 2023/06/02 10:56
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/15.4]
Сводка
-
Объекты (2 изменено, 0 добавлено, 0 удалено)
Подробности
- XWiki.JavaScriptExtension[0]
-
- Код
-
... ... @@ -123,7 +123,7 @@ 123 123 hasErrors = true; 124 124 } 125 125 const beforeUploadEvent = Event.fire(document, 'xwiki:actions:beforeUpload', { 126 - file: fileInput 126 + file: fileInput.files[0] 127 127 }); 128 128 129 129 if (beforeUploadEvent.defaultPrevented) {
- XWiki.WikiMacroClass[0]
-
- Код
-
... ... @@ -33,7 +33,7 @@ 33 33 #set ($property = "$!{xcontext.macro.params.property}") 34 34 #set ($object = $numbertool.toNumber("$!{xcontext.macro.params.object}").intValue()) 35 35 #if ("$!{object}" != $!{xcontext.macro.params.object}) 36 - #set ($object = ${doc.getObject($classname).number}) 36 + #set ($object = ${targetdoc.getObject($classname).number}) 37 37 #if ("$!{object}" == '') 38 38 #set ($object = 0) 39 39 #end ... ... @@ -94,7 +94,7 @@ 94 94 #set ($savemode = 'form') 95 95 #end 96 96 97 -#set ($propValue = "$!{doc.getObject($classname, $object).getProperty($property).value}") 97 +#set ($propValue = "$!{targetdoc.getObject($classname, $object).getProperty($property).value}") 98 98 ## 99 99 100 100 #macro (attachmentPicker_displayAttachment $name $displayImage $withLink $forceElement)