Skip to content

Modal error rerenders whole page beneath modal (same behavior if class = modal fade) #28

@Jacubeit

Description

@Jacubeit

Hi,
thanks for the great work!
The Modal error Handling seems to have an issue. If I just press "Request Invitation" without providing an email, I get an error inside the modal. This is defined by

<div id =" request-invite" class="modal" style="display: <%= @user.errors.any? ? 'block' : 'none'; %>

So far this is great!

I now added some pictures to the page (beneath the modal) wrapped in a seperate div, but on error it will render the whole page again. see attached image.

Seems like the same behavior when I set ...class "modal fade" (I would love to have some transition).

I tried for the last 5 Days to rewrite the modal dialog to use Rails build in ajax (remote => true). But I just could not get it to work.

Do you have any suggestion, how I can fix the error handling to only prompt the error and not misbehave like in the screenshot?

Thank you so much!
joh
Bildschirmfoto 2012-12-10 um 11.08.16.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions