Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 4379-4390 (lines=12) @@
4376
				return match;
4377
			}
4378
4379
			for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
4380
				if ( elem ) {
4381
					if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
4382
						if ( !inplace ) {
4383
							result.push( elem );
4384
						}
4385
4386
					} else if ( inplace ) {
4387
						curLoop[i] = false;
4388
					}
4389
				}
4390
			}
4391
4392
			return false;
4393
		},

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

@@ 3741-3752 (lines=12) @@
3738
				return match;
3739
			}
3740
3741
			for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
3742
				if ( elem ) {
3743
					if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
3744
						if ( !inplace ) {
3745
							result.push( elem );
3746
						}
3747
3748
					} else if ( inplace ) {
3749
						curLoop[i] = false;
3750
					}
3751
				}
3752
			}
3753
3754
			return false;
3755
		},