diff --git a/unauthenticated/js/bundle.min.js b/unauthenticated/js/bundle.min.js index c6c155570..c8ec85d77 100644 --- a/unauthenticated/js/bundle.min.js +++ b/unauthenticated/js/bundle.min.js @@ -79,7 +79,7 @@ if(typeof jQuery==="undefined"){throw new Error("Bootstrap's JavaScript requires * Copyright 2015 James Santos * Licensed under MIT */ -(function(e,t){e.fn.contextMenu=function(n){var r=e("#content"),a=".dropdown-submenu";return this.each(function(){e(this).on("contextmenu",function(r){e(n.menuSelector).find(a).removeClass("right");if(e(r.target).parents("tr").hasClass("directory_go_up")||e(r.target).parents("tr").find("td.dataTables_empty").length){r.preventDefault();return}if(r.ctrlKey||r.altKey||r.shiftKey){r.preventDefault();r.stopPropagation();typeof t.getSelection==="function"&&t.getSelection().removeAllRanges();e(r.target).parents("tr").find('td.ui_checked_checkbox input[type="checkbox"]').trigger("click");return}___contextmenu__triggered___=1;e(n.menuSelector).data("invokedOn",e(r.target)).show(0,false,function(){n.menuSelectorTriggered.call(this,e(this).data("invokedOn"),e(r.target));delete ___contextmenu__triggered___}).css({position:"absolute",left:i(e("body").data("mousePageX"),"width","scrollLeft",r),top:i(e("body").data("mousePageY"),"height","scrollTop",r)}).off("click").on("click",function(t){if(e(t.target).parent().hasClass("disabled")||e(t.target).parents("[data-go_up-target]").hasClass("disabled")||e(t.target).is("[data-prevent-default]")||e(t.target).is(".dropdown-menu")||e(t.target).is(".divider")){t.preventDefault();return}e(this).hide();var r=e(this).data("invokedOn");var a=e(t.target);n.menuSelected.call(this,r,a,t);t.preventDefault()});e("body").off("click.fmcmenu");e("body").on("click.fmcmenu",function(t){if(!e(t.target).closest(e(n.menuSelector)).length){e(n.menuSelector).hide();delete ___contextmenu__triggered___}});return false})});function i(i,o,c,l){var d=e(t)[c](),s=parseInt(r.css("margin-left")),u=content_page_calc_width(),f=content_page_calc_height(),_=i-(o==="width"?s:0)+d,g=e(n.menuSelector).width(),h=e(n.menuSelector).height(),m=e($v__fm__container_fluid).offset().top,p=e($v__fm__container_fluid).offset().left;if(o==="height"){_-=m;var v=h/1.02;if(fcontainer_visible_height-r&&menu_height/1.6