Skip to content

Commit

Permalink
Update plugin so that it installs
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetso committed Mar 27, 2024
1 parent 7bab282 commit ee5195e
Show file tree
Hide file tree
Showing 78 changed files with 1,796 additions and 575 deletions.
12 changes: 6 additions & 6 deletions assets/js/admin-elementor-pro.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ class PROCAPTCHAAdminElementorPro extends elementorModules.editor.utils.Module {
);
}

let ProCaptchaData = 'data-sitekey="' + config.site_key + '"';
ProCaptchaData += ' data-theme="' + config.procaptcha_theme + '"';
ProCaptchaData += ' data-size="' + config.procaptcha_size + '"';
ProCaptchaData += ' data-auto="false"';
let ProcaptchaData = 'data-sitekey="' + config.site_key + '"';
ProcaptchaData += ' data-theme="' + config.procaptcha_theme + '"';
ProcaptchaData += ' data-size="' + config.procaptcha_size + '"';
ProcaptchaData += ' data-auto="false"';

return '<div class="procaptcha" ' + ProCaptchaData + '></div>';
return '<div class="procaptcha" ' + ProcaptchaData + '></div>';
}

renderField( inputField, item ) {
Expand Down Expand Up @@ -74,4 +74,4 @@ class PROCAPTCHAAdminElementorPro extends elementorModules.editor.utils.Module {
}
}

window.ProCaptchaAdminElementorPro = new PROCAPTCHAAdminElementorPro();
window.ProcaptchaAdminElementorPro = new PROCAPTCHAAdminElementorPro();
2 changes: 1 addition & 1 deletion assets/js/admin-elementor-pro.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions assets/js/admin-forminator.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jQuery( document ).on( 'ajaxSuccess', function( event, xhr, settings ) {
return;
}

window.ProCaptchaBindEvents();
window.ProcaptchaBindEvents();
} );

jQuery( document ).ready( function( $ ) {
Expand Down Expand Up @@ -48,13 +48,13 @@ document.addEventListener( 'DOMContentLoaded', function() {
continue;
}

const ProCaptchaButton = document.querySelectorAll( '#forminator-modal-body--captcha .sui-tabs-content .sui-tabs-menu .sui-tab-item' )[ 1 ];
const ProcaptchaButton = document.querySelectorAll( '#forminator-modal-body--captcha .sui-tabs-content .sui-tabs-menu .sui-tab-item' )[ 1 ];

if ( ProCaptchaButton === undefined || ! ProCaptchaButton.classList.contains( 'active' ) ) {
if ( ProcaptchaButton === undefined || ! ProcaptchaButton.classList.contains( 'active' ) ) {
return;
}

const content = ProCaptchaButton.closest( '.sui-tab-content' );
const content = ProcaptchaButton.closest( '.sui-tab-content' );

const rows = content.querySelectorAll( '.sui-box-settings-row' );

Expand Down
2 changes: 1 addition & 1 deletion assets/js/admin-forminator.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/js/admin-nf.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ document.addEventListener( 'DOMContentLoaded', function() {
document.querySelector( '.procaptcha' ) &&
! document.querySelector( '.procaptcha iframe' )
) {
window.ProCaptchaBindEvents();
window.ProcaptchaBindEvents();
}

return node;
Expand Down
2 changes: 1 addition & 1 deletion assets/js/admin-nf.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ee5195e

Please sign in to comment.