Created
March 8, 2018 11:56
-
-
Save DominikStyp/647384c5090ebaaabc3bd7cd2fffab94 to your computer and use it in GitHub Desktop.
Re-init popoovers when Pjax reloads GridView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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