Skip to content

Commit

Permalink
Update teh popover test
Browse files Browse the repository at this point in the history
  • Loading branch information
okonomiyaki3000 committed Apr 24, 2018
1 parent 72a0d04 commit eebf9a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public function testPopover()

$this->assertEquals(
$document->_script['text/javascript'],
'jQuery(function($){ $(".hasPopover").popover({"html": true,"trigger": "hover focus","container": "body"}); });',
'jQuery(function($){ initPopovers(); $("body").on("subform-row-add", initPopovers); function initPopovers (event, container) { $(container || document).find(".hasPopover").popover({"html": true,"trigger": "hover focus","container": "body"});} });',
'Verify that the popover script is initialised'
);
}
Expand Down

0 comments on commit eebf9a5

Please sign in to comment.