Code Duplication    Length = 12-12 lines in 2 locations

api/js/etemplate/test/jquery.js 1 location

@@ 6816-6827 (lines=12) @@
6813
	return val + "px";
6814
}
6815
6816
if ( jQuery.expr && jQuery.expr.filters ) {
6817
	jQuery.expr.filters.hidden = function( elem ) {
6818
		var width = elem.offsetWidth,
6819
			height = elem.offsetHeight;
6820
6821
		return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
6822
	};
6823
6824
	jQuery.expr.filters.visible = function( elem ) {
6825
		return !jQuery.expr.filters.hidden( elem );
6826
	};
6827
}
6828
6829
6830

api/js/egw_action/test/js/jquery.js 1 location

@@ 5971-5982 (lines=12) @@
5968
	return val;
5969
}
5970
5971
if ( jQuery.expr && jQuery.expr.filters ) {
5972
	jQuery.expr.filters.hidden = function( elem ) {
5973
		var width = elem.offsetWidth,
5974
			height = elem.offsetHeight;
5975
5976
		return (width === 0 && height === 0) || (!jQuery.support.reliableHiddenOffsets && (elem.style.display || jQuery.css( elem, "display" )) === "none");
5977
	};
5978
5979
	jQuery.expr.filters.visible = function( elem ) {
5980
		return !jQuery.expr.filters.hidden( elem );
5981
	};
5982
}
5983
5984
5985