mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
wait for DOM to remove attribute
use window.jQuery instead of $ updated to removeAttr method
This commit is contained in:
parent
6e13a68762
commit
cfbf61f60c
@ -115,8 +115,8 @@ JS;
|
|||||||
|
|
||||||
$javascript = <<<JS
|
$javascript = <<<JS
|
||||||
if ('undefined' !== typeof window.jQuery) {
|
if ('undefined' !== typeof window.jQuery) {
|
||||||
$(document).ready(function() {
|
window.jQuery(document).ready(function() {
|
||||||
window.jQuery('body').removeAttribute('data-jserrors');
|
window.jQuery('body').removeAttr('data-jserrors');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
JS;
|
JS;
|
||||||
|
Loading…
Reference in New Issue
Block a user