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

Element inside ignoreClass triggers popup #77

Closed
burmester opened this issue Jun 25, 2015 · 1 comment
Closed

Element inside ignoreClass triggers popup #77

burmester opened this issue Jun 25, 2015 · 1 comment

Comments

@burmester
Copy link

When I have a anchor-link with my ignore-class and press the table inside the warning is still shown.

<a href="#criteria" class="ignoreDirty">
Show me more
<table class="assessment-summary">
  <tbody>
   <tr>
    <td class="   "></td>
    <td class="   "></td>
    <td class="   "></td>
   </tr>
  </tbody>
 </table>
</a>
@NightOwl888
Copy link
Collaborator

The ignoreClass is currently only supported when it is applied directly to the element. You could work around this by using a selector to apply the class everywhere you need it, such as.

$('assessment-summary input').addClass('ignoreDirty');

This is a good idea though, and I plan to add support for ignoring children in the next version.

NightOwl888 added a commit to NightOwl888/jquery.dirtyforms that referenced this issue Jun 26, 2015
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

2 participants