jfquestiaux
Well-Known Member
Hi Rob,
I would like to use the submitonce.js script I found on another thead :
but I understand that now there is no more "run js" plugin in F3.
I guess it is not as easy as to record the above code in components/com_fabrik/js/X.js, so can you give me some pointers ?
Thanks.
I would like to use the submitonce.js script I found on another thead :
Code:
//class name needs to be the same as the file name
var submitonce = new Class({
initialize: function(form)
{
this.form = form; //the form js object
},
//called when a repeat group is duplicated
onSubmit: function(event){
$('fabrikSubmit'+this.form.id).disabled = true;
$('fabrikSubmit'+this.form.id).value = 'Now saving....';
}
});
but I understand that now there is no more "run js" plugin in F3.
I guess it is not as easy as to record the above code in components/com_fabrik/js/X.js, so can you give me some pointers ?
Thanks.