| Server IP : 138.197.176.125 / Your IP : 216.73.216.41 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/crm_easylife/libraries/jquery/ |
Upload File : |
/**
* jQuery additions
*/
;(function($){
/**
* Position the first element in the jQuery list near another element
* using absolute positioning. The element should already have the
* proper z-Index set.
*
* @param string align 'bottom' for bottom left, or 'right' for top right,
* 'left' for top left, 'top' for above left.
*/
$.fn.makePositioned = function(align, element) {
var first = this.eq(0);
var pos, height, width, left, top, thisHeight, thisWidth;
pos = element.offset();
height = element.outerHeight(), width = element.outerWidth();
left = pos.left, top = pos.top;
thisHeight = first.outerHeight(), thisWidth = first.outerWidth();
switch (align) {
case 'bottom':
top += height;
break;
case 'right':
left += width;
break;
case 'left':
left = left - thisWidth;
break;
case 'top':
top = top - thisHeight;
break;
}
first.css({
top: parseInt(top)+'px',
left: parseInt(left)+'px',
position: 'absolute'
});
return this;
}
})(jQuery);