You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/08/02 14:47:51 UTC
svn commit: r1864234 - in /comdev/reporter.apache.org/trunk/site/wizard/js:
source/unified.js wizard.js
Author: humbedooh
Date: Fri Aug 2 14:47:50 2019
New Revision: 1864234
URL: http://svn.apache.org/viewvc?rev=1864234&view=rev
Log:
skip highlighting if we don't see a change in what's requested (typically up/down keys in use)
Modified:
comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js
comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js?rev=1864234&r1=1864233&r2=1864234&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js Fri Aug 2 14:47:50 2019
@@ -3,7 +3,8 @@
function UnifiedEditor_highlight_sections(additional_text) {
// Don't highlight unless we haven't before or new text is noted
if (this.have_highligted && !additional_text) return;
-
+ if (this.previous_addl == additional_text) return;
+ this.previous_addl = additional_text;
// Set which sections highlight
let hilites = [];
// Headers are blue
Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1864234&r1=1864233&r2=1864234&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Fri Aug 2 14:47:50 2019
@@ -1853,7 +1853,8 @@ function ReportStepper(div, editor, layo
function UnifiedEditor_highlight_sections(additional_text) {
// Don't highlight unless we haven't before or new text is noted
if (this.have_highligted && !additional_text) return;
-
+ if (this.previous_addl == additional_text) return;
+ this.previous_addl = additional_text;
// Set which sections highlight
let hilites = [];
// Headers are blue