Tagged: jquery ja k2 filter
-
AuthorPosts
-
October 13, 2016 at 10:41 am #976016
Hi all,
My JA K2 filter module appears with this j query error:
‘; if (jQuery.inArray(jQuery(this).val(), [‘adate’]) === -1) strout += ‘ ‘+ ‘ Decrease
‘+ ‘ ‘; strout += ‘ ‘; } else { strout = ‘
Decrease
‘; } jQuery(this).parents(‘li’).after(‘ ‘ + ‘ ‘+ ‘ ‘ + jQuery(this).find(‘option:selected’).html() + ‘
‘ + strout+ ‘ Delete ‘+ ‘ ‘+ ‘ ‘); } }); function resetChildren($current, $next) { if ($next) { $data = $jak2depend[parseInt($next.data(‘exfield’))][$current.val()]; if ($data != undefined && $data != ‘undefined’) { $next.html(”); $next.append(”+$next.data(‘extitle’)+”); for (i=0;i’+$data[1]+”); } $next.chosen("destroy").chosen(); } else { $next.html(”); $next.append(”+$next.data(‘extitle’)+”); $next.chosen("destroy").chosen(); } $next = ‘#K2ExtraField‘+$next.data(‘exfield’)+’_’+(parseInt($next.data(‘dependlv’))+1); if (jQuery($_next).length) resetChildren($next, jQuery($next)); } } jQuery(‘#jak2filter139 .jak2depend’).unbind().off().change(function() { $next = ‘#K2ExtraField‘+jQuery(this).data(‘exfield’)+’‘+(parseInt(jQuery(this).data(‘dependlv’))+1); if (jQuery($next).length) resetChildren(jQuery(this), jQuery($next)); jQuery(‘#xf‘+parseInt(jQuery(this).data(‘exfield’))+’array’).val(”); jQuery(‘#jak2filter139 .jak2depend’).each(function(){ $ar = jQuery(‘#xf‘+parseInt(jQuery(this).data(‘exfield’))+’array’).val(); if (jQuery(this).val() != ”) $ar += jQuery(this).val()+’,’; jQuery(‘#xf‘+parseInt(jQuery(this).data(‘exfield’))+’array’).val($ar); }); jQuery(‘#xf‘+parseInt(jQuery(this).data(‘exfield’))+’txt’).val(jQuery(this).val()); if (jQuery(this).val() == ”) { // get the prev value if choose no value at current. $prev = ‘#K2ExtraField‘+jQuery(this).data(‘exfield’)+’‘+(parseInt(jQuery(this).data(‘dependlv’))-1); if (jQuery($prev).length) { jQuery(‘#xf‘+parseInt(jQuery(this).data(‘exfield’))+’_txt’).val(jQuery($prev).val()); } } if (jQuery(this).data(‘autofield’) == ‘all’) $(‘jak2filter-form-139’).fireEvent(‘submit’); // always submit form if all defined. }); jQuery(‘#btnSubmit139’).on(‘click’, function(){ jQuery(this).preventDefault(); return false; }); }); window.addEvent(‘load’, function () { if ($(‘jak2filter139’).getElement(‘#category_id’)) { jak2DisplayExtraFields(139, $(‘jak2filter139’).getElement(‘#category_id’), 0); } $(‘jak2filter-form-139’).addEvent(‘submit’, function () { // mootools $check = checkrequired($required_fields139, "jak2filter-form-139"); if ($check == true) { jak2AjaxSubmit(this, ‘/joomlaAPI1/’); jak2GetUrlSharing(this); } else { jQuery("html, body").scrollTop(jQuery(‘#jak2filter-form-139’).find(‘.jak2-error’).first().offset().top-jQuery(‘#jak2filter-form-139’).find(‘.jak2-error’).first().parents(‘.subclass’).height()); return false; } }); // jQuery(‘#jak2filter-form-139’).on(‘submit’, function (event) { // jQuery // $check = checkrequired($requiredfields139, "jak2filter-form-139"); // if ($check == true) { // event.preventDefault(); // jak2AjaxSubmit(this, ‘/joomlaAPI1/’); // // jak2GetUrlSharing(this); // // } // }); if (jQuery(‘#k2Container’)) { jak2AjaxPagination(jQuery(‘#k2Container’), ‘/joomlaAPI1/’); jak2GetUrlSharing(this); } }); /]]>_/
All help is appreciated
I use joomla 3 , appach (2.4) , mysql (5.6) , php (5.5)
-
AuthorPosts
This topic contains 1 reply, has 2 voices, and was last updated by Mo0nlight 8 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum