Buttons on ajax content
xtianus opened this issue · 3 comments
xtianus commented
dbox commented
Can you provide a demo / minimal working example?
xtianus commented
Can't give you a demo right now buy I can tell you what I did to make it work:
- removed "rrssbInit();" from end of "$(document).ready(function(){"
- changed "$(document).ready(function(){" into "var documentReady = function() {"
- added "documentReady();" just after "var rrssbInit = function() {"
Now I can call "rrssbInit();" whenever I need to initialize the buttons. For example after a bootstrap modal has opened:
$('#ajaxModal').on('shown.bs.modal', function (e) {
rrssbInit();
});
dbox commented
Let me know if you can post a demo and we'll reopen.