community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864062 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/primer.js wizard.js
Date Wed, 31 Jul 2019 13:56:35 GMT
Author: humbedooh
Date: Wed Jul 31 13:56:35 2019
New Revision: 1864062

URL: http://svn.apache.org/viewvc?rev=1864062&view=rev
Log:
Complain if field not filled out and going to next step

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.js?rev=1864062&r1=1864061&r2=1864062&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.js Wed Jul 31 13:56:35 2019
@@ -42,6 +42,10 @@ function build_steps(s, start) {
     if (!start && text && text.value.length > 0 && current_step
< 5) {
         report[current_step] = text.value;
     }
+    if (!start && text && current_step > 0 && text.value.length
== 0 && s > current_step) {
+        alert("Please write some text in the input field before continuing to the next step!");
+        return
+    }
     
     // Check that ALL fields are filled before preview
     if (s == 5) {

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=1864062&r1=1864061&r2=1864062&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Wed Jul 31 13:56:35 2019
@@ -1149,6 +1149,10 @@ function build_steps(s, start) {
     if (!start && text && text.value.length > 0 && current_step
< 5) {
         report[current_step] = text.value;
     }
+    if (!start && text && current_step > 0 && text.value.length
== 0 && s > current_step) {
+        alert("Please write some text in the input field before continuing to the next step!");
+        return
+    }
     
     // Check that ALL fields are filled before preview
     if (s == 5) {



Mime
View raw message