• Fabrik V4.4.1 is now available.

    This version corrects the Admin issue introduced by V4.4. V4.4.1 is available through the Joomla Updater or for download through your My Downloads area of our website.

    Turns out a code change intended for our 5.0dev branch inadvertantly got pushed to the 4.x branch (by me, duh!). The javascript structure in 5.0 will change considerably and part of that change took effect with the inadvertant code change.

    We have reverted the code change and released 4.4.1. V4.4 has been retracted.

    Sorry for any inconvenience.

  • A new version of Full Calendar is now available.

    See the details here

How to not trigger the loading spinner in form

mirceat

Member
Hello,

I'm using the following code to toggle a textfield in form. Works fine if the loading spinner is disabled in form, but if it's enabled then every time I click on "Add street name" button the spinner is triggered like the form is trying to submit information.

I need to keep the loading spinner enabled to prevent multiple submits but also need to use this code. How can I do it? Thank you

JavaScript:
jQuery(document).ready(function() {

jQuery('.fb_el_contracts_tool_servicii_830_repeat___nume_strada_bis').hide();

jQuery( "<button id='addButton'>Add street name</button>" ).insertAfter( "#contracts_tool_servicii_830_repeat___nume_strada" );

jQuery('#addButton').click(function() {

jQuery('.fb_el_contracts_tool_servicii_830_repeat___nume_strada_bis').toggle();
});

});
 
Last edited:
seems to be solve it using preventDefault in function:

jQuery('#addButton').click(function(spinner) {
spinner.preventDefault();
jQuery('.fb_el_contracts_tool_servicii_830_repeat___nume_strada_bis').toggle();
});
 
Last edited:
Back
Top