????

Your IP : 3.142.212.225


Current Path : /home2/morganrand/backup.morganrand.com/centerpiece_party_favor_designer/cp/js/
Upload File :
Current File : /home2/morganrand/backup.morganrand.com/centerpiece_party_favor_designer/cp/js/default.js

// JavaScript Document
$(document).ready(function() {
	$('.popup_open').magnificPopup({
	  type: 'inline',
	  closeBtnInside: true,
	  preloader: false,
	  midClick: true,
	  removalDelay: 300,
	  mainClass: 'my-mfp-zoom-in',
	  closeMarkup: '<a href="javascript:;" class="mfp-close"></a>',
	  callbacks: {
			open: function() {
				$("#Project_Administration").parent().parent().addClass("admin_popup_outer")
			}
	  }
	});	
	
	 if($('.uplaod_file')){
		$('.uplaod_file').off('click').on('click', '.input_file_value, .upload_file_btn',function(e){
			var ele = $(this),
				targetEle = $(e.target),
				eParent = ele.parent('.uplaod_file'),			
				eFile = eParent.find('.input_file');
				
			if(targetEle.is('.input_file_value')){
				eFile.trigger('click');
			}
			if(targetEle.is('.upload_file_btn')){
				eFile.trigger('click');
			}
		});
	}
	$(".accordian_open_contact").on("click",function(){
		if($(this).hasClass("active")){
			$(this).parent().children(".accordian_main_contact").slideUp();
			$(this).removeClass("active");
		}else{
			$('.accordian_open_contact').removeClass("active");
			$(".accordian_main_contact").slideUp();
			$(this).parent().children(".accordian_main_contact").slideDown();
			$(this).addClass("active");
		}
	})
	$(".cancle_btn_contact").on("click",function(){
		$(".accordian_main_contact").slideUp();
		$(".accordian_open_contact").removeClass("active");
	});
	$("#first_popover, #second_tooltip").popover({
		placement: "left",
		trigger : "hover"
	})
	
	$(".accordian_open").on("click",function(){
		if($(this).hasClass("active")){
			$(this).parent().children(".accordian_main").slideUp();
			$(this).removeClass("active");
		}else{
			$('.accordian_open').removeClass("active");
			$(".accordian_main").slideUp();
			$(this).parent().children(".accordian_main").slideDown();
			$(this).addClass("active");
		}
	})
	$(".cancle_btn").on("click",function(){
		$(".accordian_main").slideUp();
		$(".accordian_open").removeClass("active");
	});
});
function getValue(o){//for get selected file value
	var ele = $(o),
		eParent = ele.parent('.uplaod_file'),
		eInput = eParent.find('.input_file_value');		
		eInput.val(o.value);
}