You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
733 B
JavaScript
22 lines
733 B
JavaScript
$(document).ready(function() {
|
|
|
|
//Load Wizards
|
|
$('#basicwizard').stepy();
|
|
$('#wizard').stepy({finishButton: true, titleClick: true, block: true, validate: true});
|
|
|
|
//Add Wizard Compability - see docs
|
|
$('.stepy-navigator').wrapInner('<div class="pull-right"></div>');
|
|
|
|
//Make Validation Compability - see docs
|
|
$('#wizard').validate({
|
|
errorClass: "help-block",
|
|
validClass: "help-block",
|
|
highlight: function(element, errorClass,validClass) {
|
|
$(element).closest('.form-group').addClass("has-error");
|
|
},
|
|
unhighlight: function(element, errorClass,validClass) {
|
|
$(element).closest('.form-group').removeClass("has-error");
|
|
}
|
|
});
|
|
|
|
}); |