... |
... |
@@ -31,7
+31,7 @@ |
31 |
31 |
</style> |
32 |
32 |
|
33 |
33 |
<script type="text/javascript"> |
34 |
|
- window.fcjq = $; |
|
34 |
+ fcjq = $; |
35 |
35 |
console.log("BE",window.fcjq); |
36 |
36 |
$.noConflict(); |
37 |
37 |
console.log("AF",window.fcjq); |
... |
... |
@@ -55,9
+55,9 @@ |
55 |
55 |
window.renderForm = function(formId){ |
56 |
56 |
var myBase = 'https://help6.formcycle.eu/xwiki/bin/edit/Examples/IncludeFormViaExternalContext/'; |
57 |
57 |
var fcBase = 'https://pro.formcloud.de/formcycle'; |
58 |
|
- var myFormContainer = window.fcjq('#content'); |
|
58 |
+ var myFormContainer = fcjq('#content'); |
59 |
59 |
|
60 |
|
- var form = window.fcjq.ajax({ |
|
60 |
+ var form = fcjq.ajax({ |
61 |
61 |
type: "GET", |
62 |
62 |
url: fcBase + '/form/provide/' + formId, |
63 |
63 |
data:{ |
... |
... |
@@ -79,7
+79,7 @@ |
79 |
79 |
success:function(html){ |
80 |
80 |
console.log('Form:',html); |
81 |
81 |
//myFormContainer.html(html); |
82 |
|
- myFormContainer.html(html.replace(/\$/g,'window.fcjq')); |
|
82 |
+ myFormContainer.html(html.replace(/\$/g,'fcjq')); |
83 |
83 |
}, |
84 |
84 |
crossDomain: true |
85 |
85 |
}); |