File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,12 +76,14 @@ var step = 0;
7676var backDisabled = false ;
7777
7878function start ( ) {
79+ if ( backDisabled ) return ;
7980 next ( ) ;
8081 document . getElementById ( 'start' ) . classList . add ( 'hidden' ) ;
8182 document . getElementById ( 'next' ) . classList . remove ( 'hidden' ) ;
8283} ;
8384
8485function next ( ) {
86+ if ( backDisabled ) return ;
8587 if ( step > 0 ) {
8688 const currentField = document . querySelector ( `.inputField[step="${ step } "]` ) ;
8789 if ( currentField && currentField . classList . contains ( 'required' ) ) {
@@ -135,6 +137,7 @@ function next() {
135137} ;
136138
137139function back ( ) {
140+ if ( backDisabled ) return ;
138141 if ( step > 1 ) {
139142 document . querySelector ( `.inputField[step="${ step } "]` ) ?. classList . remove ( 'active' ) ;
140143 step -- ;
@@ -209,6 +212,7 @@ document.addEventListener('keydown', function (event) {
209212} ) ;
210213
211214async function create ( ) {
215+ if ( backDisabled ) return ;
212216 anim_out ( ) ;
213217 var data = { } ;
214218 document . querySelectorAll ( '.inputField' ) . forEach ( field => {
You can’t perform that action at this time.
0 commit comments