Changes for page Main
Last modified by Administrator on 2023/03/27 10:53
From version
5.1


edited by Administrator
on 2020/12/29 00:17
on 2020/12/29 00:17
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/12.10.2]
To version
6.1


edited by Administrator
on 2022/12/28 19:36
on 2022/12/28 19:36
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui/14.10.2]
Summary
Details
- Page properties
-
- Content
-
... ... @@ -388,8 +388,6 @@ 388 388 * Display the edit class form. 389 389 *# 390 390 #macro (displayEditForm) 391 - #set ($discard = $xwiki.jsfx.use('js/scriptaculous/effects.js')) 392 - #set ($discard = $xwiki.jsfx.use('js/scriptaculous/dragdrop.js')) 393 393 #set ($discard = $xwiki.jsx.use('AppWithinMinutes.ClassEditSheet')) 394 394 #set ($discard = $xwiki.ssx.use('AppWithinMinutes.ClassEditSheet')) 395 395 #set ($discard = $xwiki.ssx.use('AppWithinMinutes.ClassSheetGenerator'))
- XWiki.JavaScriptExtension[2]
-
- Code
-
... ... @@ -515,11 +515,7 @@ 515 515 }(XWiki || {})); 516 516 517 517 (function() { 518 - function init() { 519 - var form = $('inline'); 520 - if (!form) { 521 - return false; 522 - } 518 + function initForm(form) { 523 523 // Let the sheet handle the form submit. The form is submitted by default to the preview action which dispatches the 524 524 // request to the save action if the save button is detected on the request parameters. By submitting to the edit 525 525 // action the edit sheet is evaluated and thus it can handle the save by itself. ... ... @@ -557,9 +557,18 @@ 557 557 // Make the palette and the canvas live. 558 558 new XWiki.FormFieldPalette('palette'); 559 559 new XWiki.FormCanvas('canvas'); 556 + } 560 560 561 - return true; 558 + function init() { 559 + var form = $('inline'); 560 + if (form) { 561 + require(['scriptaculous/dragdrop'], function() { 562 + initForm(form); 563 + }); 564 + } 565 + return form; 562 562 } 567 + 563 563 (XWiki.domIsLoaded && init()) || document.observe('xwiki:dom:loaded', init); 564 564 }).call(); 565 565