Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DominikStyp/647384c5090ebaaabc3bd7cd2fffab94 to your computer and use it in GitHub Desktop.
Save DominikStyp/647384c5090ebaaabc3bd7cd2fffab94 to your computer and use it in GitHub Desktop.
Re-init popoovers when Pjax reloads GridView
function reInintPopovers(){
var $btns = $("[data-toggle='popover-x']");
if ($btns.length) {
$btns.popoverButton();
}
}
$(document).on('pjax:end', function() {
reInintPopovers();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment