Skip to content

Commit

Permalink
MDL-30660 javascript-static: another yui3/ticket/2531561 work-around.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt authored and stronk7 committed Dec 9, 2011
1 parent 81dda1d commit 653e811
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/javascript-static.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ M.util.show_confirm_dialog = function(e, args) {
window.location = targetancestor.get('href');

} else if (target.test('input')) {
targetform = target.ancestor('form');
targetform = target.ancestor(function(node) { return node.get('tagName').toLowerCase() == 'form'; });
// We cannot use target.ancestor('form') on the previous line
// because of http://yuilibrary.com/projects/yui3/ticket/2531561
if (!targetform) {
return;
}
Expand Down

0 comments on commit 653e811

Please sign in to comment.