好的,所以我正在将 Bootstrap Tour 与使用 Twitter Bootstrap 3 的项目集成。基本上,一切正常,直到我显示一个模式然后尝试附加一个步骤。在我调整浏览器大小之前它不会显示。我可以关闭模式并且它不存在并调整窗口大小然后它显示,所以这不是我不相信的 z-index 问题。任何帮助,将不胜感激。
// Instance the tour
var jag_tour = new Tour();
//Step 1, show info about are submission entry
jag_tour.addStep({
element: ".submission_entry",
title: "Sample Signup",
content: "This is where your snazzy new signups will be found. Click them to show more details.",
onNext: function(tour) {
var submission_id_info = $(".submission_entry").attr('id');
submission_id = submission_id_info.split('_');
show_submission_info_modal(submission_id['1']);
jat_tour.start();
}
});
//Step 2, show our modal popup edit info
jag_tour.addStep({
element: "#modal_submission_owner_name",
title: "Prospect Info",
content: "Need to change the owner of a prospect? How about some details? No problem, just do that here.",
onPrev: function(tour) {
$("#view_submission_modal").modal('hide');
},
});
// Initialize the tour
jag_tour.init();
jag_tour.start();