community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1865385 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/stepper.js source/unified.js wizard-beta.js
Date Sun, 18 Aug 2019 07:31:23 GMT
Author: humbedooh
Date: Sun Aug 18 07:31:22 2019
New Revision: 1865385

URL: http://svn.apache.org/viewvc?rev=1865385&view=rev
Log:
Couple of fixes for dealing with differently formatted reports like incubator

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/stepper.js
    comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/stepper.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/stepper.js?rev=1865385&r1=1865384&r2=1865385&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/stepper.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/stepper.js Sun Aug 18 07:31:22
2019
@@ -35,7 +35,7 @@ function ReportStepper(div, editor, layo
         
         if (this.changed) this.editor.highlight();
         // skip building if nothing changed
-        if (!this.changed && !start && this.editor.report == this.editor.last_cursor_report)
return;
+        if (!this.changed && !start && this.editor.report == this.editor.last_cursor_report
&& s != -1) return;
         this.editor.last_cursor_report = this.editor.report;
         
         // build the step div

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=1865385&r1=1865384&r2=1865385&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 Sun Aug 18 07:31:22
2019
@@ -8,7 +8,7 @@ function UnifiedEditor_highlight_section
     // Set which sections  highlight
     let hilites = [];
       // Headers are blue
-    hilites.push({highlight: /^## [^\r\n]+:/mg, className: 'blue' });
+    hilites.push({highlight: /^## [^\r\n]+:?/mg, className: 'blue' });
       // Placeholders are grey with red border
     hilites.push({highlight: PLACEHOLDER, className: 'none' });
      // <private> sections
@@ -98,7 +98,7 @@ function UnifiedEditor_find_section(e) {
     } else {
         for (var i = 0; i < this.layout.length; i++) {
             let step = this.layout[i];
-            let tline = "## %s:".format(step.rawname || step.description);
+            let tline = "## %s".format(step.rawname || step.description);
             if (tprec.indexOf(tline) != -1) {
                 at_step = i;
             }
@@ -173,7 +173,7 @@ function UnifiedEditor_mark_section(titl
     for (var i = 0; i < this.sections.length; i++) {
         let section = this.sections[i];
         if (section.title == title && section.text.indexOf(PLACEHOLDER) == -1 &&
section.text.length > 4) {
-            //console.log("Marking entire %s section from %u to %u".format(title, sections[i].start,
sections[i].end))
+            //console.log("Marking entire %s section from %u to %u".format(title, this.sections[i].start,
this.sections[i].end))
             this.highlight(section.text);
             foundit = true;
             break;

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js?rev=1865385&r1=1865384&r2=1865385&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js Sun Aug 18 07:31:22 2019
@@ -3190,7 +3190,7 @@ function ReportStepper(div, editor, layo
         
         if (this.changed) this.editor.highlight();
         // skip building if nothing changed
-        if (!this.changed && !start && this.editor.report == this.editor.last_cursor_report)
return;
+        if (!this.changed && !start && this.editor.report == this.editor.last_cursor_report
&& s != -1) return;
         this.editor.last_cursor_report = this.editor.report;
         
         // build the step div
@@ -3298,7 +3298,7 @@ function UnifiedEditor_highlight_section
     // Set which sections  highlight
     let hilites = [];
       // Headers are blue
-    hilites.push({highlight: /^## [^\r\n]+:/mg, className: 'blue' });
+    hilites.push({highlight: /^## [^\r\n]+:?/mg, className: 'blue' });
       // Placeholders are grey with red border
     hilites.push({highlight: PLACEHOLDER, className: 'none' });
      // <private> sections
@@ -3388,7 +3388,7 @@ function UnifiedEditor_find_section(e) {
     } else {
         for (var i = 0; i < this.layout.length; i++) {
             let step = this.layout[i];
-            let tline = "## %s:".format(step.rawname || step.description);
+            let tline = "## %s".format(step.rawname || step.description);
             if (tprec.indexOf(tline) != -1) {
                 at_step = i;
             }
@@ -3463,7 +3463,7 @@ function UnifiedEditor_mark_section(titl
     for (var i = 0; i < this.sections.length; i++) {
         let section = this.sections[i];
         if (section.title == title && section.text.indexOf(PLACEHOLDER) == -1 &&
section.text.length > 4) {
-            //console.log("Marking entire %s section from %u to %u".format(title, sections[i].start,
sections[i].end))
+            //console.log("Marking entire %s section from %u to %u".format(title, this.sections[i].start,
this.sections[i].end))
             this.highlight(section.text);
             foundit = true;
             break;



Mime
View raw message