(function($){'use strict';$(document).ready(function(){$('#rootwizard,#rootwizard1').bootstrapWizard({onTabShow:function(tab,navigation,index){var $total=navigation.find('li').length;var $current=index+ 1;if($current>=$total){$('#rootwizard,#rootwizard1').find('.pager .next').hide();$('#rootwizard,#rootwizard1').find('.pager .finish').show().removeClass('disabled hidden');}else{$('#rootwizard,#rootwizard1').find('.pager .next').show();$('#rootwizard,#rootwizard1').find('.pager .finish').hide();}
var li=navigation.find('li.active');var btnNext=$('#rootwizard,#rootwizard1').find('.pager .next').find('button');var btnPrev=$('#rootwizard,#rootwizard1').find('.pager .previous').find('button');function removeIcons(btn){btn.removeClass(function(index,css){return(css.match(/(^|\s)fa-\S+/g)||[]).join(' ');});}
if($current>1&&$current<$total){var nextIcon=li.next().find('.fa');var nextIconClass=nextIcon.attr('class').match(/fa-[\w-]*/).join();removeIcons(btnNext);btnNext.addClass(nextIconClass+' btn-animated from-left fa');var prevIcon=li.prev().find('.fa');var prevIconClass=prevIcon.attr('class').match(/fa-[\w-]*/).join();removeIcons(btnPrev);btnPrev.addClass(prevIconClass+' btn-animated from-left fa');}else if($current==1){btnPrev.removeClass('btn-animated from-left fa');removeIcons(btnPrev);}else{btnNext.removeClass('btn-animated from-left fa');removeIcons(btnNext);}},onNext:function(tab,navigation,index){console.log("Showing next tab");},onPrevious:function(tab,navigation,index){console.log("Showing previous tab");},onInit:function(){$('#rootwizard ul,#rootwizard1 ul').removeClass('nav-pills');}});$('.remove-item').click(function(){$(this).parents('tr').fadeOut(function(){$(this).remove();});});});})(window.jQuery);





//$(function(){
//	$("#WizardModal,#EditModal").on("shown.bs.modal",function(){
//		$("body").addClass("NoSearch");
//		$("#WizardModal,#EditModal").unbind("click.dismiss.bs.modal")
//	}).find("button.close[data-dismiss='modal']").bind("click",function(){
//		$("#OpenWizardForm").click()
//		$("body").removeClass("NoSearch");
//	})
//})