$(document).ready(function(){$("#filer_input").filer({showThumbs:!0}),$("#filer_input2").filer({limit:null,maxSize:null,extensions:null,changeInput:'<div class="jFiler-input-dragDrop"><div class="jFiler-input-inner"><div class="jFiler-input-icon"><i class="fa fa-upload"></i></div><div class="jFiler-input-text"><h3>Drop files here or click to upload</h3> </div></div></div>',showThumbs:!0,theme:"dragdropbox",templates:{box:'<ul class="jFiler-items-list jFiler-items-grid"></ul>',item:'<li class="jFiler-item">                        <div class="jFiler-item-container">                            <div class="jFiler-item-inner">                                <div class="jFiler-item-thumb">                                    <div class="jFiler-item-status"></div>                                    <div class="jFiler-item-info">                                        <a href="#" class="btn primary-btn">Set as Featured</a>                                    </div>                                    {{fi-image}}                                </div>                                <div class="jFiler-item-assets jFiler-row">                                    <ul class="list-inline pull-left">                                        <li>{{fi-progressBar}}</li>                                    </ul>                                    <ul class="list-inline pull-right remove-img">                                        <li><a class="fa fa-close jFiler-item-trash-action"></a></li>                                    </ul>                                </div>                            </div>                        </div>                    </li>',itemAppend:'<li class="jFiler-item">                            <div class="jFiler-item-container">                                <div class="jFiler-item-inner">                                    <div class="jFiler-item-thumb">                                        <div class="jFiler-item-status"></div>                                        <div class="jFiler-item-info">                                            <a href="#" class="btn primary-btn">Set as Featured</a>                                        </div>                                        {{fi-image}}                                    </div>                                    <div class="jFiler-item-assets jFiler-row">                                        <ul class="list-inline pull-left">                                            <li><span class="jFiler-item-others">{{fi-icon}}</span></li>                                        </ul>                                        <ul class="list-inline pull-right">                                            <li><a class="icon-jfi-trash jFiler-item-trash-action"></a></li>                                        </ul>                                    </div>                                </div>                            </div>                        </li>',progressBar:'<div class="bar"></div>',itemAppendToEnd:!1,removeConfirmation:!0,_selectors:{list:".jFiler-items-list",item:".jFiler-item",progressBar:".bar",remove:".jFiler-item-trash-action"}},dragDrop:{dragEnter:null,dragLeave:null,drop:null},uploadFile:{url:"./php/upload.php",data:null,type:"POST",enctype:"multipart/form-data",beforeSend:function(){},success:function(e,i){var l=i.find(".jFiler-jProgressBar").parent();i.find(".jFiler-jProgressBar").fadeOut("slow",function(){$('<div class="jFiler-item-others text-success"><i class="icon-jfi-check-circle"></i> Success</div>').hide().appendTo(l).fadeIn("slow")})},error:function(e){var i=e.find(".jFiler-jProgressBar").parent();e.find(".jFiler-jProgressBar").fadeOut("slow",function(){$('<div class="jFiler-item-others text-error"><i class="icon-jfi-minus-circle"></i> Error</div>').hide().appendTo(i).fadeIn("slow")})},statusCode:null,onProgress:null,onComplete:null},files:null,addMore:!1,clipBoardPaste:!0,excludeName:null,beforeRender:null,afterRender:null,beforeShow:null,beforeSelect:null,onSelect:null,afterShow:null,onRemove:function(e,i,l,s,r,a,t){var i=i.name;$.post("./php/remove_file.php",{file:i})},onEmpty:null,options:null,captions:{button:"Choose Files",feedback:"Choose files To Upload",feedback2:"files were chosen",drop:"Drop file here to Upload",removeConfirmation:"Are you sure you want to remove this file?",errors:{filesLimit:"Only {{fi-limit}} files are allowed to be uploaded.",filesType:"Only Images are allowed to be uploaded.",filesSize:"{{fi-name}} is too large! Please upload file up to {{fi-maxSize}} MB.",filesSizeAll:"Files you've choosed are too large! Please upload files up to {{fi-maxSize}} MB."}}})});