Code Duplication    Length = 20-22 lines in 2 locations

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

@@ 257-278 (lines=22) @@
254
			var arrowUp = null;
255
			var arrowDown = null;
256
			//#menu_overflow:06062008#{
257
			if (this.limit > 0 && this.limit < itemCount)  {
258
				var auId = "arrowup_"+id;
259
				var adId = "arrowdown_"+id;
260
				
261
				// add overflow arrows if they not exists
262
				if (this.idPull["arrowup_"+id] == null) this._addUpArrow(String(id).replace(this.idPrefix,""));
263
				if (this.idPull["arrowdown_"+id] == null) this._addDownArrow(String(id).replace(this.idPrefix,""));
264
				
265
				// configure up arrow
266
				arrowUp = this.idPull["arrowup_"+id];
267
				arrowUp.style.visibility = "hidden";
268
				arrowUp.style.display = "";
269
				arrowUp.style.zIndex = this.zInd;
270
				arrUpH = arrowUp.offsetHeight;
271
				
272
				// configure bottom arrow
273
				arrowDown = this.idPull["arrowdown_"+id];
274
				arrowDown.style.visibility = "hidden";
275
				arrowDown.style.display = "";
276
				arrowDown.style.zIndex = this.zInd;
277
				arrDownH = arrowDown.offsetHeight;
278
			}
279
			//#}
280
			// show polygon
281
			this.idPull[pId].style.visibility = "hidden";

api/js/dhtmlxMenu/sources/dhtmlxmenu.js 1 location

@@ 278-297 (lines=20) @@
275
			}
276
			
277
			//#menu_overflow:06062008#{
278
			if (this.limit > 0 && this.limit < itemCount)  {
279
				
280
				// add overflow arrows if they not exists
281
				if (this.idPull["arrowup_"+id] == null) this._addUpArrow(String(id).replace(this.idPrefix,""));
282
				if (this.idPull["arrowdown_"+id] == null) this._addDownArrow(String(id).replace(this.idPrefix,""));
283
				
284
				// configure up arrow
285
				arrowUp = this.idPull["arrowup_"+id];
286
				arrowUp.style.visibility = "hidden";
287
				arrowUp.style.display = "";
288
				arrowUp.style.zIndex = this.zInd;
289
				arrUpH = arrowUp.offsetHeight;
290
				
291
				// configure bottom arrow
292
				arrowDown = this.idPull["arrowdown_"+id];
293
				arrowDown.style.visibility = "hidden";
294
				arrowDown.style.display = "";
295
				arrowDown.style.zIndex = this.zInd;
296
				arrDownH = arrowDown.offsetHeight;
297
			}
298
			//#}
299
			
300
			if (this.limit > 0) {