Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images upload not working #261

Closed
VetonSyn opened this issue Jul 4, 2018 · 0 comments
Closed

Images upload not working #261

VetonSyn opened this issue Jul 4, 2018 · 0 comments

Comments

@VetonSyn
Copy link

VetonSyn commented Jul 4, 2018

Hello,

I have tested the form on me localhost website. Everything works like a charm however, only when people want to upload the avatar it will not start opening the file upload window.

If i remove the javascript from JQuery step then it will work.

`<script type="text/javascript">
(function ($)
{
$(document).ready(function ()
{
var form = $("#djForm");
form.validate({
errorPlacement: function errorPlacement(error, element) { element.before(error); },
rules: {
confirm: {
equalTo: "#password"
}
}
});
form.children("div").steps({
headerTag: "h3",
bodyTag: "section",
transitionEffect: "slideLeft",
onStepChanging: function (event, currentIndex, newIndex)
{
// Allways allow step back to the previous step even if the current step is not valid!
if (currentIndex > newIndex)
{
return true;
}
form.validate().settings.ignore = ":disabled,:hidden";
return form.valid();
},
onFinishing: function (event, currentIndex)
{
form.validate().settings.ignore = ":disabled";
return form.valid();
},

            onFinished: function (event, currentIndex)
            {
                alert("Submitted!");
            }
        });
    });

})(jQuery); 

</script>`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant