community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864234 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/unified.js wizard.js
Date Fri, 02 Aug 2019 14:47:51 GMT
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



Mime
View raw message