assets/js/jquery.stepy.js
Function stepy
has 203 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
xoops_smallworld.fn.stepy = function (settings) {
if (this.length == 0) {
//debug('Selector invalid or missing!');
return;
File jquery.stepy.js
has 312 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jQuery Stepy - A Wizard Plugin - http://wbotelhos.com/stepy
* ---------------------------------------------------------------------------------
*
* jQuery Stepy is a plugin based on FormToWizard that generates a customizable wizard.
Function validate
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function validate(context, index, opt) {
if (!context.is('form')) {
return true;
}
Avoid deeply nested control flow statements. Open
Open
if (onSubmit) {
xoops_smallworldthis.attr('onsubmit', onSubmit);
} else {
xoops_smallworldthis.removeAttr('onsubmit');
}
Avoid deeply nested control flow statements. Open
Open
if (!isSubmit && (!opt.validate || validate(xoops_smallworldthis, size - 1, opt))) {
xoops_smallworldthis.submit();
}