ok

Mini Shell

Direktori : /home/pequenacapitolio/www/js/libs/
Upload File :
Current File : /home/pequenacapitolio/www/js/libs/daterangepicker.min-date.min.js

!function(a){a.fn.DateRangePickerMinDate=function(t){return a.each(this,function(){var e=a.extend(t,a(this).data());a(this).on("focus",function(){new function(t,e){var n,i,d=a(t),r=d.data("daterangepicker"),s={};if(n=parseInt(e.dateMin||0),console.log(e),r&&!r.dateMin&&(r.dateLimit&&n>r.dateLimit.days&&(n=r.dateLimit.days),!(n<2))){r.dateMin=!0;var l="custom-date-min",f=0,c=function(t,e,d){var l=r["left"===d?"leftCalendar":"rightCalendar"].calendar;if(i)a.each(["left","right"],function(){s[this].find("td").removeClass("date-min no-click")});else for(var c=0;c<6;c++)for(var o=0;o<7;o++){var h,u=l[c][o];(u.isSame(t)||u.isSame(e)||u.isAfter(t)&&u.isBefore(e))&&(h=s[d].find('[data-title="r'+c+"c"+o+'"]').addClass("in-range date-min")),h&&h.hasClass("available")&&++f<n&&h.addClass("no-click")}};d.attr("data-date-min",n).data("dateMin",n),a.each(["left","right"],function(){s[this]=r.container.find(".calendar."+this),s[this].off("mouseup."+l).on("mouseup."+l,function(a){var t=r.container.find(".start-date"),e=r.container.find(".end-date"),d=t.closest(".calendar").hasClass("left")?"left":"right",s=r["left"===d?"leftCalendar":"rightCalendar"].calendar,l=t.attr("data-title"),o=l.substr(1,1),h=l.substr(3,1),u=s[o][h],m=u.clone().add(n-1,"day");i=!!e.length,f=0,c(u,m,"left"),c(u,m,"right")})})}}(this,a.extend({dateMin:""},e))})})}}(jQuery);

Zerion Mini Shell 1.0