Changeset 2361750
- Timestamp:
- 08/15/2020 08:47:10 AM (6 years ago)
- Location:
- anfrageformular/trunk
- Files:
-
- 7 edited
-
Anfrageformular.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
res/scripts/af2_builder.js (modified) (2 diffs)
-
res/scripts/af2_formularbuilder_m.js (modified) (3 diffs)
-
res/scripts/af2_formularbuilder_v.js (modified) (46 diffs)
-
res/scripts/af2_save_state.js (modified) (1 diff)
-
res/scripts/af2_sidebar.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
anfrageformular/trunk/Anfrageformular.php
r2359775 r2361750 6 6 Author URI: https://anfrageformular.com/ 7 7 Author E-Mail: support@anfrageformular.com 8 Version: 1.0 8 Version: 1.0.1 9 9 */ 10 10 -
anfrageformular/trunk/readme.txt
r2359775 r2361750 1 1 === Anfrageformular – Multi Step Drag & Drop Formular Builder – Leadgenerierung === 2 2 Contributors: Anfrageformular 3 Tags: contact form, kontaktformular, multi step form, form, leadgenerierung, lead generation3 Tags: contact form, multi step form, form, formular, leadgenerierung, lead generation, kontaktformular, anfrageformular, configurator, konfigurator, drag & drop 4 4 Requires at least: 5.0 5 5 Tested up to: 5.5 6 6 Requires PHP: 5.6 7 Stable tag: 1.0 7 Stable tag: 1.0.1 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 15 15 Vergiss deine Probleme mit WordPress Formularen und Websites, die keine Ergebnisse bringen - mach deine Website mit unserem Anfrageformular Plugin für WordPress zu einer Neukundenmaschine, die nachweislich deine Umsätze steigert! 16 16 17 https://www.youtube.com/watch?v=DZCk9mcm6QY 18 17 19 - **Einfach** 18 20 Erstelle mit wenigen Klicks hochwertige Formulare per Drag & Drop, ohne eine Zeile Code anzufassen. 21 19 22 20 23 - **Intuitiv** 21 24 Führe deine Website Besucher intuitiv durch einen verkaufsstarken Prozess, der mehr Leads für dich generiert. 22 25 26 23 27 - **Logik** 24 28 Wenn A - dann B. Baue Fragen und Antworten aufeinander auf und verknüpfe diese um deinen Besucher zum Ziel zu führen. 29 25 30 26 31 - **100% Responsive** 27 32 Das Anfrageformular sieht auf jedem Gerät genial aus, nie wieder Kunden verlieren durch nicht optimierte Formulare. 28 33 29 https://www.youtube.com/watch?v=DZCk9mcm6QY 34 - **Verkaufspsychologie** 35 Die Formulare sind so aufgebaut, dass deine Besucher diese intuitiv und selbsterklärend ausfüllen. 36 37 - **DSGVO-konform** 38 Wir arbeiten und programmieren nach den aktuellsten Gesetzen der Europäischen Union und sind 100% DSGVO-konform. 39 30 40 31 41 Der Besucher kann sich interaktiv durch von dir individuell erstellte Schritte klicken und wird so animiert Kontakt aufzunehmen oder dein Produkt zu kaufen. Websitebesucher sind heute fauler als je zuvor, die wenigsten haben noch Lust irgendwo Texteingaben zu machen und würden am liebsten nur noch einen Klick zum Ziel machen. 32 42 Genau dort setzen wir an und holen den Besucher mit einem interaktiven Formular ab was nicht nur Spaß macht auszufüllen, sondern auch noch voll responsive ist und auf jedem Gerät gut funktioniert. 33 43 44 = Einfache Multi-Step Formulare = 45 46 Ein WordPress Kontaktformular muss nicht langweilig sein - mit dem Anfrageformular erstellst du ganz einfach innerhalb von 2 Minuten ein Multi-Step Formular mit einem einzigartigen Formularbuilder - ganz ohne eine Zeile Code anzufassen! Probiere es direkt aus! 47 48 34 49 == Features: == 35 50 - Drag & Drop Formularbuilder 36 - Logische Verknüpfung von Fragen 37 - Tracking für Google Ads & Facebook Ads 38 - Individuelle anpassbares Design & Farben 39 - Mobile Optimierung 40 - Autoresponder 41 - Demo Import 51 - unbegrenzt Fragen & Forms 52 - 2 Fragetypen 53 - bis zu 5 Formularsteps 54 - 1 Demo Vorlage 55 - Regelmäßige Updates 56 - Facebook Gruppe 57 - Help Center 42 58 43 59 Sieh dir auch unsere [Premium Version](https://anfrageformular.com/) für noch mehr Features an! … … 78 94 79 95 == Screenshots == 80 1. **Formularbuilder **81 2. **Fragenbuilder **82 3. **Lead Übersicht**83 4. **Kontaktformularbuilder **84 5. **Formularvorschau **96 1. **Formularbuilder.** 97 2. **Fragenbuilder.** 98 3. **Leads.** 99 4. **Kontaktformularbuilder.** 100 5. **Formularvorschau.** 85 101 86 102 == Changelog == 87 103 88 = 1.0 - 1 3. August 2020 =104 = 1.0 - 10. August 2020 = 89 105 * Initial Public Beta Release 106 107 = 1.0.1 - 14. August 2020 = 108 * Fix: Formbuilder color picker conflict with Slider Revolution -
anfrageformular/trunk/res/scripts/af2_builder.js
r2359775 r2361750 675 675 try 676 676 { 677 $( colorPicker).each((i, el) => {678 $( colorPicker[i]).off('change');677 $(af2_colorPicker).each((i, el) => { 678 $(af2_colorPicker[i]).off('change'); 679 679 }).promise().done(() => { 680 colorPicker = [];680 af2_colorPicker = []; 681 681 $('.colorpicker').each((i, el) => { 682 682 $(el).remove(); … … 690 690 }); 691 691 692 colorPicker.push(safe);693 694 colorPicker[colorPicker.length-1].on('change', (ev) => {692 af2_colorPicker.push(safe); 693 694 af2_colorPicker[af2_colorPicker.length-1].on('change', (ev) => { 695 695 af2_color_change_validate(ev.rgba, id); 696 696 $($('#'+id)[0]).css('background-color', ev.rgba); -
anfrageformular/trunk/res/scripts/af2_formularbuilder_m.js
r2359775 r2361750 771 771 if(insert === true) 772 772 { 773 let exists = false;773 let af2_exists = false; 774 774 let place = conns.connections.length; 775 775 let old_to_section = undefined; … … 797 797 if(el.from.toString() === connector.toString()) 798 798 { 799 exists = true;799 af2_exists = true; 800 800 place = i; 801 801 … … 805 805 }).promise().done(() => { 806 806 807 if( exists === true)807 if(af2_exists === true) 808 808 { 809 809 af2_jsonobj.sections[sectionfrom].contents[containerfrom].connections[place].to_section = section; -
anfrageformular/trunk/res/scripts/af2_formularbuilder_v.js
r2359775 r2361750 1 1 let drag_element = undefined; 2 let exists = false;3 let colorPicker = [];4 5 let gotContent = undefined;6 let gotContent1 = undefined;7 8 let first_dragged = false;9 10 let req_dat = undefined;11 12 let forms = []; // All Forms13 let datas = []; // All Data contents2 let af2_exists = false; 3 let af2_colorPicker = []; 4 5 let af2_gotContent = undefined; 6 let af2_gotContent1 = undefined; 7 8 let af2_first_dragged = false; 9 10 let af2_req_dat = undefined; 11 12 let af2_forms = []; // All Forms 13 let af2_datas = []; // All Data contents 14 14 let af2Styles = {}; 15 15 $ = jQuery; … … 272 272 window.addEventListener("mousemove", handleMousemove, false); 273 273 274 first_dragged = true;274 af2_first_dragged = true; 275 275 276 276 if (!($(drag_element).hasClass('af2_connector'))) … … 357 357 { 358 358 $(el).remove(); 359 exists = true;359 af2_exists = true; 360 360 } 361 361 } … … 469 469 470 470 471 if ( exists === true)471 if (af2_exists === true) 472 472 { 473 473 let parent = $($($(drag_element).parent()).parent()); … … 497 497 } 498 498 499 exists = false;499 af2_exists = false; 500 500 drag_element = undefined; 501 501 … … 645 645 646 646 647 exists = false;647 af2_exists = false; 648 648 drag_element = undefined; 649 649 … … 825 825 $($(section_selector + ' #af2_form_section_content_' + i)[0]).attr('data-contentid', contentid); 826 826 $.when(af2_generate_section_content(i, pos, 1)).done(() => { 827 $(section_selector + ' #af2_form_section_content_' + i).html( gotContent1[0]);828 829 if ( gotContent1[1] !== undefined)830 { 831 $(section_selector + ' #af2_form_section_content_' + i + ' #inline_got').append( gotContent1[1]);832 833 if ( gotContent1[2] !== undefined)834 { 835 $(section_selector + ' #af2_form_section_content_' + i).append( gotContent1[2]);827 $(section_selector + ' #af2_form_section_content_' + i).html(af2_gotContent1[0]); 828 829 if (af2_gotContent1[1] !== undefined) 830 { 831 $(section_selector + ' #af2_form_section_content_' + i + ' #inline_got').append(af2_gotContent1[1]); 832 833 if (af2_gotContent1[2] !== undefined) 834 { 835 $(section_selector + ' #af2_form_section_content_' + i).append(af2_gotContent1[2]); 836 836 } 837 837 } … … 844 844 845 845 $.when(af2_generate_section_content(i, pos, 0)).done(() => { 846 $(section_selector + ' #af2_form_section_content_' + i).html( gotContent[0]);847 848 if ( gotContent[1] !== undefined)849 { 850 $(section_selector + ' #af2_form_section_content_' + i + ' #inline_got').append( gotContent[1]);851 852 if ( gotContent[2] !== undefined)853 { 854 $(section_selector + ' #af2_form_section_content_' + i).append( gotContent[2]);846 $(section_selector + ' #af2_form_section_content_' + i).html(af2_gotContent[0]); 847 848 if (af2_gotContent[1] !== undefined) 849 { 850 $(section_selector + ' #af2_form_section_content_' + i + ' #inline_got').append(af2_gotContent[1]); 851 852 if (af2_gotContent[2] !== undefined) 853 { 854 $(section_selector + ' #af2_form_section_content_' + i).append(af2_gotContent[2]); 855 855 } 856 856 } … … 1019 1019 if (got === 0) 1020 1020 { 1021 gotContent = [content];1021 af2_gotContent = [content]; 1022 1022 } else 1023 1023 { 1024 gotContent1 = [content];1024 af2_gotContent1 = [content]; 1025 1025 } 1026 1026 return null; … … 1175 1175 1176 1176 if (got === 0) { 1177 gotContent = [content];1177 af2_gotContent = [content]; 1178 1178 } else { 1179 gotContent1 = [content];1179 af2_gotContent1 = [content]; 1180 1180 } 1181 1181 return null; … … 1208 1208 1209 1209 if (got === 0) { 1210 gotContent = [content];1210 af2_gotContent = [content]; 1211 1211 } else { 1212 gotContent1 = [content];1212 af2_gotContent1 = [content]; 1213 1213 } 1214 1214 return null; … … 1320 1320 1321 1321 if (got === 0) { 1322 gotContent = [content];1322 af2_gotContent = [content]; 1323 1323 } else { 1324 gotContent1 = [content];1324 af2_gotContent1 = [content]; 1325 1325 } 1326 1326 return null; … … 1342 1342 1343 1343 if (got === 0) { 1344 gotContent = [content];1344 af2_gotContent = [content]; 1345 1345 } else { 1346 gotContent1 = [content];1346 af2_gotContent1 = [content]; 1347 1347 } 1348 1348 return null; … … 1492 1492 content += '</div>'; 1493 1493 if (got === 0) { 1494 gotContent = [content];1494 af2_gotContent = [content]; 1495 1495 } else { 1496 gotContent1 = [content];1496 af2_gotContent1 = [content]; 1497 1497 } 1498 1498 return null; … … 1511 1511 if (got === 0) 1512 1512 { 1513 gotContent = [content];1513 af2_gotContent = [content]; 1514 1514 } else 1515 1515 { 1516 gotContent1 = [content];1516 af2_gotContent1 = [content]; 1517 1517 } 1518 1518 return null; … … 1549 1549 if (got === 0) 1550 1550 { 1551 gotContent = [cont, ccont, cont3];1551 af2_gotContent = [cont, ccont, cont3]; 1552 1552 } else 1553 1553 { 1554 gotContent1 = [cont, ccont, cont3];1554 af2_gotContent1 = [cont, ccont, cont3]; 1555 1555 } 1556 1556 return null; … … 1560 1560 if (got === 0) 1561 1561 { 1562 gotContent = ['<h4 style="color: red">ERROR</h4>'];1562 af2_gotContent = ['<h4 style="color: red">ERROR</h4>']; 1563 1563 } else 1564 1564 { 1565 gotContent1 = ['<h4 style="color: red">ERROR</h4>'];1565 af2_gotContent1 = ['<h4 style="color: red">ERROR</h4>']; 1566 1566 } 1567 1567 return null; … … 1626 1626 if (got === 0) 1627 1627 { 1628 gotContent = [content];1628 af2_gotContent = [content]; 1629 1629 } else 1630 1630 { 1631 gotContent1 = [content];1631 af2_gotContent1 = [content]; 1632 1632 } 1633 1633 return null; … … 2164 2164 2165 2165 /** FILL VARIABLES WE NEED **/ 2166 forms = []; // All Forms2167 datas = []; // All Data contents2166 af2_forms = []; // All Forms 2167 af2_datas = []; // All Data contents 2168 2168 af2Styles = // The basic styling 2169 2169 { … … 2986 2986 const size = $(el).data('size'); 2987 2987 2988 forms[num] = new Form($, id, num, preload, size);2988 af2_forms[num] = new Form($, id, num, preload, size); 2989 2989 }); 2990 2990 … … 3042 3042 3043 3043 /** Load the Form's Content **/ 3044 if ( datas[id] === undefined) // When Dataid is not already set3045 { 3046 datas[id] = true;3044 if (af2_datas[id] === undefined) // When Dataid is not already set 3045 { 3046 af2_datas[id] = true; 3047 3047 3048 3048 af2HandleRequest($, this.formSelector, '.af2_form_wrapper', [this.id]); … … 3055 3055 const prom = $.Deferred(); 3056 3056 3057 this.neededContent = datas[this.id].sections[this.actualSection].contents[this.actualContent].data;3057 this.neededContent = af2_datas[this.id].sections[this.actualSection].contents[this.actualContent].data; 3058 3058 /** Check the redirect **/ 3059 3059 if (this.neededContent.includes('redirect')) … … 3069 3069 } 3070 3070 }); 3071 if ( datas[this.neededContent] !== undefined &&datas[this.neededContent] !== true)3071 if (af2_datas[this.neededContent] !== undefined && af2_datas[this.neededContent] !== true) 3072 3072 { 3073 3073 this.initDraw(); … … 3089 3089 this.setTriggers(); 3090 3090 3091 if ( datas[this.actualData].typ !== undefined &&3092 ( datas[this.actualData].typ === 'af2_slider' ||datas[this.actualData].typ === 'af2_content'))3091 if (af2_datas[this.actualData].typ !== undefined && 3092 (af2_datas[this.actualData].typ === 'af2_slider' || af2_datas[this.actualData].typ === 'af2_content')) 3093 3093 { 3094 3094 $(this.formSelector + ' .af2_form_foward_button').removeClass('af2_disabled'); … … 3100 3100 $(this.formSelector + ' .af2_form_bottombar').css('opacity', 1); 3101 3101 3102 if ( datas[this.actualData].typ === 'af2_content')3103 { 3104 if ( datas[this.actualData].type_specifics.content_button == true)3102 if (af2_datas[this.actualData].typ === 'af2_content') 3103 { 3104 if (af2_datas[this.actualData].type_specifics.content_button == true) 3105 3105 { 3106 3106 … … 3108 3108 3109 3109 } 3110 if ( datas[this.actualData].type_specifics.content_wait_time !== undefined && $.isNumeric(datas[this.actualData].type_specifics.content_wait_time))3110 if (af2_datas[this.actualData].type_specifics.content_wait_time !== undefined && $.isNumeric(af2_datas[this.actualData].type_specifics.content_wait_time)) 3111 3111 { 3112 3112 //blend out everything 3113 if ( datas[this.actualData].type_specifics.content_button == true)3113 if (af2_datas[this.actualData].type_specifics.content_button == true) 3114 3114 { 3115 3115 $(this.formSelector + ' .af2_submit_wrapper input.af2_submit_button.no_send').css('opacity', 0); … … 3122 3122 //timer 3123 3123 setTimeout(() => { 3124 if ( datas[this.actualData].type_specifics.content_button == true)3124 if (af2_datas[this.actualData].type_specifics.content_button == true) 3125 3125 { 3126 3126 $(this.formSelector + ' .af2_submit_wrapper input.af2_submit_button.no_send').css('opacity', 1); … … 3130 3130 } 3131 3131 this.af2Move("", 'next'); 3132 }, datas[this.actualData].type_specifics.content_wait_time);3132 }, af2_datas[this.actualData].type_specifics.content_wait_time); 3133 3133 } 3134 3134 } … … 3145 3145 3146 3146 /** Check neededContent first **/ 3147 if ( datas[this.neededContent] === undefined)3147 if (af2_datas[this.neededContent] === undefined) 3148 3148 { 3149 3149 dataIds.push(this.neededContent); 3150 datas[this.neededContent] = true;3151 } 3152 3153 if ( datas[this.id].sections[this.actualSection].contents[this.actualContent].connections !== undefined)3150 af2_datas[this.neededContent] = true; 3151 } 3152 3153 if (af2_datas[this.id].sections[this.actualSection].contents[this.actualContent].connections !== undefined) 3154 3154 { 3155 3155 /** Iterate the first part **/ 3156 $( datas[this.id].sections[this.actualSection].contents[this.actualContent].connections).each((i, el) => {3156 $(af2_datas[this.id].sections[this.actualSection].contents[this.actualContent].connections).each((i, el) => { 3157 3157 const toSection = el.to_section; 3158 3158 const toContent = el.to_content; 3159 3159 3160 3160 /** Check the Data **/ 3161 if ( datas[el.to_dataid] === undefined && !el.to_dataid.includes('redirect'))3161 if (af2_datas[el.to_dataid] === undefined && !el.to_dataid.includes('redirect')) 3162 3162 { 3163 3163 dataIds.push(el.to_dataid); 3164 datas[el.to_dataid] = true;3165 3166 if ( datas[this.id].sections[toSection].contents[toContent].connections !== undefined)3164 af2_datas[el.to_dataid] = true; 3165 3166 if (af2_datas[this.id].sections[toSection].contents[toContent].connections !== undefined) 3167 3167 { 3168 $.each( datas[this.id].sections[toSection].contents[toContent].connections, (j, e) => {3168 $.each(af2_datas[this.id].sections[toSection].contents[toContent].connections, (j, e) => { 3169 3169 3170 3170 /** Check the Data **/ 3171 if ( datas[e.to_dataid] === undefined && !e.to_dataid.includes('redirect')) {3171 if (af2_datas[e.to_dataid] === undefined && !e.to_dataid.includes('redirect')) { 3172 3172 dataIds.push(e.to_dataid); 3173 datas[e.to_dataid] = true;3173 af2_datas[e.to_dataid] = true; 3174 3174 } 3175 3175 }); … … 3178 3178 3179 3179 3180 if (i === datas[this.id].sections[this.actualSection].contents[this.actualContent].connections.length - 1)3180 if (i === af2_datas[this.id].sections[this.actualSection].contents[this.actualContent].connections.length - 1) 3181 3181 { 3182 3182 prom.resolve(dataIds); … … 3198 3198 if (!$(this.formSelector + ' .af2_form_foward_button').hasClass('af2_disabled')) 3199 3199 { 3200 if ( datas[this.actualData].typ === 'af2_multiselect')3200 if (af2_datas[this.actualData].typ === 'af2_multiselect') 3201 3201 { 3202 3202 let arr = []; … … 3206 3206 this.af2Move(arr, 'next'); 3207 3207 }); 3208 } else if ( datas[this.actualData].typ === 'af2_textfeld')3208 } else if (af2_datas[this.actualData].typ === 'af2_textfeld') 3209 3209 { 3210 3210 this.af2Move($(this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_textfeld_frage').val(), 'next'); 3211 } else if ( datas[this.actualData].typ === 'af2_datum')3211 } else if (af2_datas[this.actualData].typ === 'af2_datum') 3212 3212 { 3213 3213 this.af2Move($(this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_datum_frage').val(), 'next'); … … 3227 3227 3228 3228 this.$(document).on('click', this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_answer_', (ev) => { 3229 if ( datas[this.actualData].typ === 'af2_multiselect')3229 if (af2_datas[this.actualData].typ === 'af2_multiselect') 3230 3230 { 3231 3231 $(ev.currentTarget).toggleClass('selected_item'); … … 3236 3236 $(this.formSelector + ' .af2_form_foward_button').removeClass('af2_disabled'); 3237 3237 3238 const cond = datas[this.actualData].type_specifics.condition;3238 const cond = af2_datas[this.actualData].type_specifics.condition; 3239 3239 if (cond !== undefined && cond !== '' && $.isNumeric(cond) && cond > 1) 3240 3240 { … … 3306 3306 if (!$(ev.currentTarget).hasClass('af2_disabled')) 3307 3307 { 3308 if ( datas[this.actualData].typ === 'af2_multiselect')3308 if (af2_datas[this.actualData].typ === 'af2_multiselect') 3309 3309 { 3310 3310 let arr = []; … … 3314 3314 this.af2Move(arr, 'next'); 3315 3315 }); 3316 } else if ( datas[this.actualData].typ === 'af2_textfeld')3316 } else if (af2_datas[this.actualData].typ === 'af2_textfeld') 3317 3317 { 3318 3318 this.af2Move($(this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_textfeld_frage').val(), 'next'); 3319 } else if ( datas[this.actualData].typ === 'af2_textbereich')3319 } else if (af2_datas[this.actualData].typ === 'af2_textbereich') 3320 3320 { 3321 3321 this.af2Move($(this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_textbereich_frage').val(), 'next'); 3322 } else if ( datas[this.actualData].typ === 'af2_datum')3322 } else if (af2_datas[this.actualData].typ === 'af2_datum') 3323 3323 { 3324 3324 this.af2Move($(this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_datum_frage').val(), 'next'); 3325 } else if ( datas[this.actualData].typ === 'af2_slider')3325 } else if (af2_datas[this.actualData].typ === 'af2_slider') 3326 3326 { 3327 3327 this.af2Move($(this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_slider_frage').val(), 'next'); 3328 } else if ( datas[this.actualData].typ === 'af2_content')3328 } else if (af2_datas[this.actualData].typ === 'af2_content') 3329 3329 { 3330 3330 this.af2Move("", 'next'); … … 3335 3335 if (!$(ev.currentTarget).hasClass('af2_disabled')) 3336 3336 { 3337 if ( datas[this.actualData].typ === 'af2_multiselect')3337 if (af2_datas[this.actualData].typ === 'af2_multiselect') 3338 3338 { 3339 3339 let arr = []; … … 3343 3343 this.af2Move(arr, 'next'); 3344 3344 }); 3345 } else if ( datas[this.actualData].typ === 'af2_textfeld')3345 } else if (af2_datas[this.actualData].typ === 'af2_textfeld') 3346 3346 { 3347 3347 this.af2Move($(this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_textfeld_frage').val(), 'next'); 3348 } else if ( datas[this.actualData].typ === 'af2_textbereich')3348 } else if (af2_datas[this.actualData].typ === 'af2_textbereich') 3349 3349 { 3350 3350 this.af2Move($(this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_textbereich_frage').val(), 'next'); 3351 } else if ( datas[this.actualData].typ === 'af2_datum')3351 } else if (af2_datas[this.actualData].typ === 'af2_datum') 3352 3352 { 3353 3353 this.af2Move($(this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_datum_frage').val(), 'next'); 3354 } else if ( datas[this.actualData].typ === 'af2_slider')3354 } else if (af2_datas[this.actualData].typ === 'af2_slider') 3355 3355 { 3356 3356 this.af2Move($(this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_slider_frage').val(), 'next'); 3357 } else if ( datas[this.actualData].typ === 'af2_content')3357 } else if (af2_datas[this.actualData].typ === 'af2_content') 3358 3358 { 3359 3359 this.af2Move("", 'next'); … … 3369 3369 const sliderSelector = $(this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_slider_frage'); 3370 3370 const sliderBulletSelector = $(this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_slider_frage_bullet'); 3371 af2AdjustSliderBullet(sliderSelector, sliderBulletSelector, datas[this.actualData], this.$);3371 af2AdjustSliderBullet(sliderSelector, sliderBulletSelector, af2_datas[this.actualData], this.$); 3372 3372 }); 3373 3373 }; … … 3492 3492 3493 3493 /** Set new Content **/ 3494 const buffer = af2FindNew(this.$, datas[this.id].sections[this.actualSection].contents[this.actualContent].connections, connectionFrom);3494 const buffer = af2FindNew(this.$, af2_datas[this.id].sections[this.actualSection].contents[this.actualContent].connections, connectionFrom); 3495 3495 3496 3496 const sec = this.actualSection; … … 3510 3510 this.formSelector + ' #' + (this.actualCarouselItem - 1) + '.af2_carousel_item'); 3511 3511 3512 if ( datas[this.actualData].typ === 'af2_textfeld')3512 if (af2_datas[this.actualData].typ === 'af2_textfeld') 3513 3513 { 3514 3514 $(this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_textfeld_frage').each((i, el) => { … … 3523 3523 } 3524 3524 3525 if ( datas[this.actualData].typ === 'af2_textbereich')3525 if (af2_datas[this.actualData].typ === 'af2_textbereich') 3526 3526 { 3527 3527 $(this.formSelector + ' #' + this.actualCarouselItem + '.af2_carousel_item .af2_textbereich_frage').each((i, el) => { … … 3728 3728 3729 3729 /** Check out which type it is **/ 3730 const type = datas[dataid].af2_type; // The type of the Content to draw3730 const type = af2_datas[dataid].af2_type; // The type of the Content to draw 3731 3731 let content = ''; 3732 3732 … … 3739 3739 if (type === 'frage') 3740 3740 { 3741 content += af2DrawFrage($, datas[dataid], formSelector);3742 json = datas[dataid];3741 content += af2DrawFrage($, af2_datas[dataid], formSelector); 3742 json = af2_datas[dataid]; 3743 3743 } else if (type === 'kontaktformular') 3744 3744 { 3745 content += af2DrawKontaktformular($, datas[dataid]);3745 content += af2DrawKontaktformular($, af2_datas[dataid]); 3746 3746 } 3747 3747 … … 4071 4071 4072 4072 $.each(keys, (i, el) => { 4073 datas[el] = json[el];4073 af2_datas[el] = json[el]; 4074 4074 }); 4075 4075 … … 4143 4143 const af2LoadStyling = ($, id, formSelector) => { 4144 4144 /** Overwrite styling **/ 4145 af2OverwriteStylings($, datas[id].styling).done((styling) => {4145 af2OverwriteStylings($, af2_datas[id].styling).done((styling) => { 4146 4146 /** Generate the styling **/ 4147 4147 af2GenerateStylingContent($, formSelector, styling).done((style) => { -
anfrageformular/trunk/res/scripts/af2_save_state.js
r2359775 r2361750 24 24 content_after = JSON.stringify(content_after); 25 25 } 26 } 27 catch 28 { 26 } catch(e) { 29 27 30 28 } -
anfrageformular/trunk/res/scripts/af2_sidebar.js
r2359775 r2361750 243 243 $(obj).focus(); 244 244 $($(obj).parent()).addClass('selected'); 245 } 246 catch 247 { 245 } catch(e){ 248 246 249 247 }
Note: See TracChangeset
for help on using the changeset viewer.