Commit cf43d943 authored by Kevin Stover's avatar Kevin Stover

Merge branch 'issue#3772' into 'develop'

Changes DELETE and CANCEL divs to buttons

Closes #3772

See merge request ninja-forms/ninja-forms!3710
parents 0a3f151b 1ea9f3bf
Pipeline #582 passed with stage
in 1 minute and 39 seconds
......@@ -19,6 +19,7 @@ deploy-old.sh
tests/
vendor/
composer.lock
package-lock.json
*.sass-cache
*.scssc
This diff is collapsed.
This diff is collapsed.
File mode changed from 100644 to 100755
File mode changed from 100755 to 100644
File mode changed from 100644 to 100755
......@@ -44,7 +44,7 @@ define( ['models/formModel'], function( FormModel ) {
messageBox = document.createElement( 'p' );
title = document.createElement( 'em' );
buttons = document.createElement( 'div' );
confirm = document.createElement( 'div' );
confirm = document.createElement( 'button' );
cancel = document.createElement( 'div' );
container.classList.add( 'message' );
......@@ -121,7 +121,8 @@ define( ['models/formModel'], function( FormModel ) {
} );
var btnConfirm = this.modal.container[0].getElementsByClassName('confirm')[0];
btnConfirm.addEventListener('click', function() {
btnConfirm.addEventListener('click', function( e ) {
e.preventDefault();
var deleteInputVal = document.getElementById( 'confirmDeleteFormInput' ).value;
if( 'DELETE' === deleteInputVal ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment