Bootstrap Tour doesn't show on Bootstrap Twitter 3 modal

那年仲夏 提交于 2019-12-06 11:13:31

I've had success with calling the modal manually in the onNext block. In your case, this would look like

onNext: function(tour) {
    var submission_id_info = $(".submission_entry").attr('id');
    submission_id = submission_id_info.split('_');
    show_submission_info_modal(submission_id['1']);
    $('#modal_submission_owner_name').modal
    jat_tour.start();
}

I'm also curious why you call jat_tour.start() in this step. It seems like you should only need to start the tour on initialization, no?

I had the same problem with my Angular app. Initially I was calling tour's init and start from a button I was using to launch the tour:

<button ng-click="tour.init(true);tour.start(true);">Start Tour</button>

I would never see the popup until resizing the screen. I tried everything I could with z-index but it didn't matter, the tour wasn't even started until this sizing change was done so there was no popovder object to raise the z-index of, I didn't even see the element in my browser's DOM explorer until after the resize. When I refactored to call a function in the controller to do the same, the problem went away!

<button ng-click="startTour()">Start Tour</button>

(controller)

$scope.startTour = function(){
        tour.init(true);
        tour.start(true);
}

Possibly a scope issue (though I never saw any errors), but I'm still scratching my head why this helped.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!