Support Forums - Classified Ads Script Osclass
Osclass theme support => Stela Osclass Theme => Topic started by: Dawid on March 04, 2019, 09:59:59 PM
-
welcome
Im added to stella steps when users whants post item exaclly this same in veronika :(fade-right, butTons)
but i have problem . in stella when user selected catogory its auto open windows " details" i need hide this windows in first steps , same like in vernika ( its visible only in 3 steps ) HOW I CAN DOING THATS ??
-
It is not complicated to devide page into steps, problem is to make it working properly. You may check veronika's global.js to get idea how it works
-
Thanks for answer . But im check this in global.js
In Stella and Veronika looks exaclly this same :"(
// If there are only 2 steps, hide next button on 2nd step
if(total < 3) {
$('fieldset.photos .post-next').hide(0);
} else {
$('fieldset.photos .post-next').show(0);
}
});
}
} else if ( $(this).hasClass('post-prev') ) {
$('fieldset[data-step-id="' + current + '"]').animate({marginLeft: "1000px", opacity:0}, 300, function(){
$('fieldset[data-step-id="' + current + '"]').hide(0);
$('fieldset[data-step-id="' + prev + '"]').css('display', 'inline-block').css('margin-left', '-1000px').css('opacity', '0');
$('fieldset[data-step-id="' + prev + '"]').animate({marginLeft: "0px", opacity:1}, 300);
});
// Hide submit button
$('.buttons-block').animate({marginLeft: "1000px", opacity:1}, 300, function() {
$('.buttons-block').hide(0);
});
}
-
Mayby problem its in this line ?
// Check for required fields
$('fieldset[data-step-id="' + current + '"] input, fieldset[data-step-id="' + current + '"] select').each(function(){
$("form[name=item]").validate().element($(this));
});
if($("form[name=item]").valid()) {
$('fieldset[data-step-id="' + current + '"]').animate({marginLeft: "-1000px", opacity:0}, 300, function(){
$('fieldset[data-step-id="' + current + '"]').hide(0);
$('fieldset[data-step-id="' + next + '"]').css('display', 'inline-block').css('margin-left', '1000px').css('opacity', '0');
$('fieldset[data-step-id="' + next + '"]').animate({marginLeft: "0px", opacity:1}, 300);
-
Any sugestion ?
-
Not at all, complexity of such request is not something that could be solved on forums by asking questions
-
I'm interested with this !
Have you found the solution ?