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/07/31 13:56:35 UTC
svn commit: r1864062 - in /comdev/reporter.apache.org/trunk/site/wizard/js:
source/primer.js wizard.js
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) {