Skip to content

Commit

Permalink
Fix problem with Halt button on enketo colletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Silva committed Jun 23, 2014
1 parent 8411235 commit 9800e61
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ $(document).foundation();

$('a.disabled').click(function(e) {
e.preventDefault();
e.stopPropagation();
e.stopImmediatePropagation();
// Workaround for when links loads with disabled and later is removed.
if ($(this).hasClass('disabled')) {
e.stopPropagation();
e.stopImmediatePropagation();
}
});

// Show shadow when content slides under the page header
Expand Down

0 comments on commit 9800e61

Please sign in to comment.