function addMsgErrorDropzone(){$(".dropzone").hasClass("has-img")&&($(".tools.final").length>0||$(".tools.preview").length>0?$(".msg-dropzone-error").remove():$(".dropzone").append("<div class='msg-dropzone-error'>Saving image is required <i class='fa fa-exclamation-triangle'><\/div>"))}function resetValueDropzone(){$(document).on("click",".tools .btn-edit",function(){$("#imageUrl").val("");$("#dropzonefile").val("");$(".dropzone").removeClass("done");$(".msg-dropzone-error").remove()})}if($(".nav-scroll").length)if("ontouchstart"in document.documentElement)$(".nav-scroll > li").on("touchstart",function(){$(this).siblings().removeClass("open-sub");$(this).addClass("open-sub")});else{var maxHeightSub=375,listouterHeight="height: auto",$list,$lastli,height=1,$wholeHeight=0,multiplier=0,spaceScroll,realTop,scrollHeightCustom,unitScroll;$("[data-scroll-height]").length&&(scrollHeightCustom=$(".nav-scroll").attr("data-scroll-height"),$.isNumeric(scrollHeightCustom)&&(maxHeightSub=scrollHeightCustom));$(function(){$(".nav-scroll > li").on("mouseenter",function(){var n=$(this),r=$(this).height,i=n.find("a"),t;if(i.addClass("hover"),n.find("[data-sub-menu]").length&&($list=n.find("[data-sub-menu]"),$lastli=$list.find("li:last-child"),height=$list.height()*1.1,$wholeHeight=$list.outerHeight(),multiplier=height/maxHeightSub,t=Math.abs(maxHeightSub-$wholeHeight),unitScroll=$list.offset().top>0?$list.height()-maxHeightSub:$list.height()-maxHeightSub-n.outerHeight(!0),spaceScroll=unitScroll>0?-unitScroll:unitScroll,t>60?$wholeHeight+60>maxHeightSub&&($wholeHeight=maxHeightSub):spaceScroll=0,listouterHeight="height:"+$wholeHeight+"px",n.data("origHeight",n.height()),$list.wrap("<div class='wrapper-scroll' style="+listouterHeight+"><\/div>").show()),multiplier>1)n.on("mousemove",function(t){var r=n.offset(),i=(t.pageY-r.top)*multiplier-n.data("origHeight")*multiplier;i>n.data("origHeight")&&(realTop=-i+n.data("origHeight"),realTop>spaceScroll?$list.css("top",realTop):$list.css("top",spaceScroll))})}).on("mouseleave",function(){var n=$(this);n.height($(this).data("origHeight")).find("[data-sub-menu]").unwrap().css({top:0}).hide().end().find("a").removeClass("hover")})})}