MDL-30660 javascript-static: another yui3/ticket/2531561 work-around.
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
4e7d5f7590
commit
68e414e8fc
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user