js: go to location on click on dialog button created from <a> (#18895)
This commit is contained in:
parent
9841169358
commit
2b7622403d
|
@ -212,7 +212,11 @@ var gadjo_js = gadjo_js || {};
|
|||
}).fail(function() { $anchor.trigger('gadjo:dialog-submit-error');
|
||||
});
|
||||
} else {
|
||||
$elem.click();
|
||||
if ($elem.is('a')) {
|
||||
window.location = $elem.attr('href');
|
||||
} else {
|
||||
$elem.click();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue