Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-30660 javascript-static: another yui3/ticket/2531561 work-around.

  • Loading branch information...
commit 68e414e8fc49bd266d2ce83f7e7d010e255e6fb2 1 parent 4e7d5f7
@timhunt timhunt authored stronk7 committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/javascript-static.js
View
4 lib/javascript-static.js
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.