From: <ast...@hy...> - 2008-11-18 01:40:31
|
Author: astroganov Date: 2008-11-17 17:40:28 -0800 (Mon, 17 Nov 2008) New Revision: 11806 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=11806 Modified: branches/HQ_4_0/web/js/lib/charts.js branches/HQ_4_0/web/js/timeline/api-2.0/scripts/timeline.js Log: HHQ-2096: reviewed by pnguyen, merging from trunk r11803 Modified: branches/HQ_4_0/web/js/lib/charts.js =================================================================== --- branches/HQ_4_0/web/js/lib/charts.js 2008-11-18 01:39:18 UTC (rev 11805) +++ branches/HQ_4_0/web/js/lib/charts.js 2008-11-18 01:40:28 UTC (rev 11806) @@ -5895,12 +5895,15 @@ this._timeline.addDiv(this._div); /* - * HHQ-2096: disable all movement for the timeline based on mouseclicks or - SimileAjax.DOM.registerEventWithObject(this._div, "mousedown", this, "_onMouseDown"); - SimileAjax.DOM.registerEventWithObject(this._div, "mousemove", this, "_onMouseMove"); - SimileAjax.DOM.registerEventWithObject(this._div, "mouseup", this, "_onMouseUp"); - SimileAjax.DOM.registerEventWithObject(this._div, "mouseout", this, "_onMouseOut"); - SimileAjax.DOM.registerEventWithObject(this._div, "dblclick", this, "_onDblClick"); + * HHQ-2096: disable all scrolling of the timeline; uncomment the following to re-enable it. + */ + /* + * SimileAjax.DOM.registerEventWithObject(this._div, "mousedown", this, "_onMouseDown"); + * SimileAjax.DOM.registerEventWithObject(this._div, "mousemove", this, "_onMouseMove"); + * SimileAjax.DOM.registerEventWithObject(this._div, "mouseup", this, "_onMouseUp"); + * SimileAjax.DOM.registerEventWithObject(this._div, "mouseout", this, "_onMouseOut"); + * SimileAjax.DOM.registerEventWithObject(this._div, "dblclick", this, "_onDblClick"); + */ /* * The inner div that contains layers Modified: branches/HQ_4_0/web/js/timeline/api-2.0/scripts/timeline.js =================================================================== --- branches/HQ_4_0/web/js/timeline/api-2.0/scripts/timeline.js 2008-11-18 01:39:18 UTC (rev 11805) +++ branches/HQ_4_0/web/js/timeline/api-2.0/scripts/timeline.js 2008-11-18 01:40:28 UTC (rev 11806) @@ -401,11 +401,16 @@ this._div.className = "timeline-band timeline-band-" + index; this._timeline.addDiv(this._div); - SimileAjax.DOM.registerEventWithObject(this._div, "mousedown", this, "_onMouseDown"); - SimileAjax.DOM.registerEventWithObject(this._div, "mousemove", this, "_onMouseMove"); - SimileAjax.DOM.registerEventWithObject(this._div, "mouseup", this, "_onMouseUp"); - SimileAjax.DOM.registerEventWithObject(this._div, "mouseout", this, "_onMouseOut"); - SimileAjax.DOM.registerEventWithObject(this._div, "dblclick", this, "_onDblClick"); + /* + * HHQ-2096: disable all scrolling of the timeline; uncomment the following to re-enable it. + */ + /* + * SimileAjax.DOM.registerEventWithObject(this._div, "mousedown", this, "_onMouseDown"); + * SimileAjax.DOM.registerEventWithObject(this._div, "mousemove", this, "_onMouseMove"); + * SimileAjax.DOM.registerEventWithObject(this._div, "mouseup", this, "_onMouseUp"); + * SimileAjax.DOM.registerEventWithObject(this._div, "mouseout", this, "_onMouseOut"); + * SimileAjax.DOM.registerEventWithObject(this._div, "dblclick", this, "_onDblClick"); + */ /* * The inner div that contains layers |