31 lines
795 B
JavaScript
31 lines
795 B
JavaScript
//= require custom.js
|
|
|
|
$(function(){
|
|
/*new customer UI func:*/
|
|
//Initialize tooltips
|
|
$('.nav-tabs > li a[title]').tooltip();
|
|
|
|
//Wizard
|
|
$('a[data-toggle="tab"]').on('show.bs.tab', function (e) {
|
|
|
|
var $target = $(e.target);
|
|
|
|
if ($target.parent().hasClass('disabled')) {
|
|
return false;
|
|
}
|
|
});
|
|
|
|
$(".next-step").click(function (e) {
|
|
var $active = $('.wizard .nav-tabs li a.active');
|
|
$active.parent().next().removeClass('disabled');
|
|
nextTab($active);
|
|
$('.wizard .nav-tabs li.active .connecting-line').css({"border-bottom-left-radius": 0, "border-top-left-radius": 0});
|
|
});
|
|
$(".prev-step").click(function (e) {
|
|
|
|
var $active = $('.wizard .nav-tabs li a.active');
|
|
prevTab($active);
|
|
|
|
});
|
|
/*new customer UI func:*/
|
|
}); |