META-INF.resources.scripts.vendor.plugins.tables.colResizable.min.js Maven / Gradle / Ivy
//colResizable - by Alvaro Prieto Lauroba - MIT & GPL
(function ( d ) {
var A = d( document ), v = "", f = "position", o = ":absolute;", k = "append", E = d( "head" )[k]( v + ".CRZ{table-layout:fixed}.CRZ td,.CRZ th{overflow:hidden}.CRC{height:0px;" + f + ":relative}.CRG{margin-left:-5px;" + f + o + " z-index:5}.CRG .CRZ{" + f + o + "background-color:red;filter:alpha(opacity=1);opacity:0;width:10px;cursor:e-resize;height:100%}.CRL{" + f + o + "width:1px}.CRD{border-left:1px dotted black" + u ), q = null, a = q, e = [], L = 0, n = "id", m = "px", c = "CRZ", B = parseInt, p = Math, C = d.browser.msie, g = false, s = "mousemove.", t = "mouseup.", x = "tr:first ", b = "width", r = "border-", w = "table", y = '' );
a.o = k;
a.g = [];
a.c = [];
a.w = a[b]();
a.d = a.prev();
a.s = B( C ? f.cellSpacing || f[g].borderSpacing : a.css( r + "spacing" ) ) || 2;
a.b = B( C ? f.border || f[g].borderLeftWidth : a.css( r + "left-" + b ) ) || 1;
e[h] = a;
D( a )
}
function K( a ) {
var b = a[j]( n ), a = e[b];
if ( !a || !a.is( w ) ) {
return;
}
a[h]( c ).d.remove();
delete e[b]
}
function D( a ) {
var e = a.find( x + "th" ), f = "removeAttr";
if ( !e.length ) {
e = a.find( x + "td" );
}
a.l = e.length;
e.each( function ( l ) {
var g = d( this ), e = d( a.d[k]( y + 'G">