Changes for page Download Version

Last modified by Simon Urli on 2023/10/10

<
From version < 9.16 >
edited by Eduard Moraru
on 2016/11/25
To version < 9.18 >
edited by Vincent Massol
on 2017/09/06
>
Change comment: Remove mention of XWiki Enterprise

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.enygma
1 +XWiki.VincentMassol
Content
... ... @@ -50,33 +50,27 @@
50 50  {{/html}}
51 51  {{/velocity}}
52 52  
53 -{{html clean='false'}}
53 +{{html clean="false"}}
54 54  <div class="row download-options">
55 55  {{/html}}
56 56  
57 -{{html clean='false'}}
58 - <div class="col-xs-12 col-lg-4">
57 +{{html clean="false"}} <div class="col-xs-12 col-lg-4">
59 59   <div class="step_number"><span>1</span></div>
60 60   <div class="next-step">
61 61   <h3>Installation Guide</h3>
62 62   <p>If you need some help installing XWiki, please check out our step-by-step guide.</p>
63 - {{/html}}[[Read the Installation Guide>>platform:AdminGuide.Installation]]{{html clean='false'}}
64 - </div>
65 - </div>
66 -{{/html}}
62 + {{/html}}[[Read the Installation Guide>>platform:AdminGuide.Installation]]{{html clean="false"}} </div>
63 + </div>{{/html}}
67 67  
68 -{{html clean='false'}}
69 - <div class="col-xs-12 col-lg-4">
65 +{{html clean="false"}} <div class="col-xs-12 col-lg-4">
70 70   <div class="step_number"><span>2</span></div>
71 71   <div class="next-step">
72 72   <h3>Getting Started</h3>
73 - <p>Learn basic information on how to set up and use XWiki Enterprise.</p>
74 - {{/html}}[[Read the Getting Started>>enterprise:GettingStarted.WebHome]]{{html clean='false'}}
75 - </div>
76 - </div>
77 -{{/html}}
69 + <p>Learn basic information on how to set up and use XWiki.</p>
70 + {{/html}}[[Read the Getting Started>>enterprise:GettingStarted.WebHome]]{{html clean="false"}} </div>
71 + </div>{{/html}}
78 78  
79 -{{html clean='false'}}
73 +{{html clean="false"}}
80 80   <div class="col-xs-12 col-lg-4">
81 81   <div class="step_number"><span>3</span></div>
82 82   <div class="next-step">
... ... @@ -84,8 +84,7 @@
84 84   <p>Want access to the same team that wrote XWiki for your own support and development needs?</p>
85 85  {{/html}}
86 86  
87 -{{html clean='false'}}
88 - <div class="list-group cloudOffers customizationOffers">
81 +{{html clean="false"}} <div class="list-group cloudOffers customizationOffers">
89 89   <span class="list-group-item">
90 90   <span class="badge noitems">11 committers</span>
91 91   <a href="http://www.xwiki.com/en/"><h4 class="list-group-item-heading">XWiki SAS</h4></a>
... ... @@ -92,10 +92,7 @@
92 92   <p>We help you modify and extend the functionalities of the XWiki platform, by meeting the specific needs of your business.</p>
93 93   <a href="http://info.xwiki.com/xcs-demo-request.html" class="btn btn-primary hidden">XWiki Collaboration Suite</a>
94 94   </span>
95 - </div>
96 -{{/html}} (% class='noitems'%)See the full list of [[companies sponsoring XWiki>>xwiki:Main.Supporters.SponsoringCompanies]].
97 -{{html clean='false'}}
98 - </div>
88 + </div>{{/html}} (% class="noitems" %)See the full list of [[companies sponsoring XWiki>>xwiki:Main.Supporters.SponsoringCompanies]].
89 +{{html clean="false"}} </div>
99 99   </div>
100 -</div>
101 -{{/html}}
91 +</div>{{/html}}
XWiki.JavaScriptExtension[0]
Code
... ... @@ -2,16 +2,22 @@
2 2   $('#emailForm').on('submit', function () {
3 3   var xwikiForm = $(this);
4 4   var userEmail = $.trim($("#userEmail", xwikiForm).val());
5 - if (userEmail != '' && this.checkValidity()) {
5 + if (this.checkValidity()) {
6 + // Update and submit the Marketo hidden form.
6 6   var marketoForm = $(".marketoForm");
7 7   if (marketoForm.length > 0) {
8 8   marketoForm = marketoForm[0];
9 - $("input[name='Email']", marketoForm).val($("#userEmail", xwikiForm).val());
10 + // Update.
11 + $("input[name='Email']", marketoForm).val(userEmail);
12 + // Submit the data.
10 10   $(".mktoButton", marketoForm).click();
11 11   }
15 + // Redirect to the download URL.
12 12   location.href = "$request.downloadURL";
17 + // Prevent the browser from submitting the form, since we`ve handled it.
13 13   return false;
14 14   } else {
20 + // Let the browser submit the form and display the validation errors natively.
15 15   return true;
16 16   }
17 17   });

Get Connected