... |
... |
@@ -41,17
+41,11 @@ |
41 |
41 |
//console.log("BE",window.fcjq); |
42 |
42 |
//$.noConflict(); |
43 |
43 |
//console.log("AF",window.fcjq); |
44 |
|
- |
|
44 |
+ |
45 |
45 |
function myFormCycleCallback(msg){ |
46 |
46 |
console.log("SADKJGAFGSALIFABGSFLHSAFHLSAHFLIHASIFHLIHFASILHLSAHFLIHSALIH"); |
47 |
47 |
console.log('Nachricht von: "' + msg.origin + '" Formular mit id: "' + msg.data + '" wurde ausgewählt.'); |
48 |
|
- var jq = function() {}; |
49 |
|
- if (typeof jQuery === 'function') { |
50 |
|
- jq = jQuery; |
51 |
|
- } else if (typeof $ === 'function') { |
52 |
|
- jq = $; |
53 |
|
- } |
54 |
|
- jq('#result').html('Nachricht von: "' + msg.origin + '" Formular mit id: "' + msg.data + '" wurde ausgewählt.' ); |
|
48 |
+ jQuery('#result').html('Nachricht von: "' + msg.origin + '" Formular mit id: "' + msg.data + '" wurde ausgewählt.' ); |
55 |
55 |
renderForm(msg.data); |
56 |
56 |
} |
57 |
57 |
console.log("Adding eventlistener"); |
... |
... |
@@ -61,9
+61,9 @@ |
61 |
61 |
window.renderForm = function(formId){ |
62 |
62 |
var myBase = 'https://help6.formcycle.eu/xwiki/bin/edit/Examples/IncludeFormViaExternalContext/'; |
63 |
63 |
var fcBase = 'https://pro.formcloud.de/formcycle'; |
64 |
|
- var myFormContainer = fcjq('#content'); |
|
58 |
+ var myFormContainer = jQuery('#content'); |
65 |
65 |
|
66 |
|
- var form = fcjq.ajax({ |
|
60 |
+ var form = jQuery.ajax({ |
67 |
67 |
type: "GET", |
68 |
68 |
url: fcBase + '/form/provide/' + formId, |
69 |
69 |
data:{ |