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

This commit is contained in:
Tim Hunt
2011-12-09 12:41:48 +01:00
committed by Eloy Lafuente (stronk7)
parent 4e7d5f7590
commit 68e414e8fc
+3 -1
View File
@@ -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;
}