Commit fd31547c authored by c24b's avatar c24b

[WIP] method for steps_tour

parent 9c30e32d
var steps = {}
function nextStep(num) {
return p[($.inArray(num, p) + 1) % p.length];
}
function previousStep(num) {
return p[($.inArray(num, p) - 1) % p.length];
}
function buildTour(){
$(".class").get().forEach(function(entry, index, array) {
var me = $(this);
console.log(entry, index, array);
});
};
modal_tpl = '<div id={modal_id} class="modal">'+ modal_tpl = '<div id={modal_id} class="modal">'+
<!-- Modal content --> <!-- Modal content -->
'<div class="modal-content">'+ '<div class="modal-content">'+
......
...@@ -350,11 +350,13 @@ ...@@ -350,11 +350,13 @@
return $("#popover-content").html(); return $("#popover-content").html();
} }
});}); });});
$(document).on("click", "a#guided_tour", function(e){ $(document).on("click", "a#guided_tour", function(e){
//make tab active //make tab active
$(this).parent().addClass("active"); $(this).parent().addClass("active");
popOverFactory($(this), "bottom", true); popOverFactory($(this), "bottom", true);
$(this).popover("show"); $(this).popover("show");
buildTour();
}); });
$(document).on("click", "button#close", function(e){ $(document).on("click", "button#close", function(e){
...@@ -366,7 +368,6 @@ ...@@ -366,7 +368,6 @@
popOverFactory($("p#add_help"), "left", false); popOverFactory($("p#add_help"), "left", false);
$("p#add_help").popover("show"); $("p#add_help").popover("show");
//$("button#add").popover("show"); //$("button#add").popover("show");
$(this).parent().parent().parent().remove(); $(this).parent().parent().parent().remove();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment