File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -358,4 +358,39 @@ significantChange.querySelector('form').onreset = function() {
358358 behavior : 'smooth'
359359 } ) ;
360360
361+ } ;
362+
363+
364+ result . querySelector ( 'form' ) . onsubmit = function ( e ) { e . preventDefault ( ) ;
365+
366+ if ( confirm ( 'Do you really want to generate another commit?' ) ) {
367+
368+ type . querySelector ( 'form > div > label[for="other"] > span' ) . innerHTML = "<strong>other</strong>: Doesn't fit any of the suggested types?" ;
369+ type . querySelector ( 'form' ) . reset ( ) ;
370+ scope . querySelector ( 'form' ) . reset ( ) ;
371+ summary . querySelector ( 'form' ) . reset ( ) ;
372+ body . querySelector ( 'form' ) . reset ( ) ;
373+ footer . querySelector ( 'form' ) . reset ( ) ;
374+ significantChange . querySelector ( 'form' ) . reset ( ) ;
375+
376+ currentTarget = type ;
377+ type . scrollIntoView ( {
378+ behavior : 'smooth'
379+ } ) ;
380+
381+ }
382+
383+ } ;
384+ result . querySelector ( 'form' ) . onreset = function ( ) {
385+
386+ let checked = significantChange . querySelector ( 'form' ) . significantChange . checked ;
387+
388+ significantChange . querySelector ( 'form' ) . significantChange . parentNode . click ( ) ;
389+ significantChange . querySelector ( 'form' ) . significantChange . checked = checked ;
390+
391+ currentTarget = significantChange ;
392+ significantChange . scrollIntoView ( {
393+ behavior : 'smooth'
394+ } ) ;
395+
361396} ;
You can’t perform that action at this time.
0 commit comments