Js error on IE (form.js)

lcollong

FabriKant d'applications web
Hi,

My app works on all browsers except IE (last version). The console shows an error : "unknown method "closest" on line 1368 of /media/com_fabrik/js/form.js script". As a workaround, I change "closest" to "getParent" but I'm not sure it will act exactly the same ....

JavaScript:
                hiddenElements = [];
                // insert hidden element of hidden elements (!) used by validation code for "skip if hidden" option
                jQuery.each(this.formElements, function (id, el) {
//                 if (el.element && jQuery(el.element.closest('.fabrikHide')).length !== 0) {
                   if (el.element && jQuery(el.element.getParent('.fabrikHide')).length !== 0) {                      
                       hiddenElements.push(id);
                   }
                });

It temporarily solved the problem.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top