This repository has been archived by the owner on Mar 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #272 from Codeinwp/development
Added missing Loader.gif file Fixed undefined notice Fix submit button leaving form when ReCaptcha is enabled
- Loading branch information
Showing
9 changed files
with
55 additions
and
34 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
"authors": [ | ||
{ | ||
"name": "ThemeIsle Team", | ||
"email": "[email protected].com", | ||
"email": "[email protected]", | ||
"homepage": "https://themeisle.com" | ||
} | ||
], | ||
|
@@ -21,7 +21,8 @@ | |
}, | ||
"require": { | ||
"codeinwp/themeisle-sdk": "master", | ||
"xrstf/composer-php52": "^1.0.20" | ||
"xrstf/composer-php52": "^1.0.20", | ||
"mailin-api/mailin-api-php": "master" | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
|
@@ -36,4 +37,4 @@ | |
"xrstf\\Composer52\\Generator::onPostInstallCmd" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,31 @@ | ||
/* global jQuery */ | ||
jQuery(document).ready(function() { | ||
jQuery( document ).ready( function () { | ||
'use strict'; | ||
jQuery( '.pirate-forms-file-upload-button' ).on( 'click', function () { | ||
var $button = jQuery( this ); | ||
$button.parent().find( 'input[type=file]' ).on( 'change', function () { | ||
$button.parent().find( 'input[type=text]' ).val( jQuery( this ).val() ).change(); | ||
} ); | ||
$button.parent().find( 'input[type=file]' ).focus().click(); | ||
} ); | ||
|
||
jQuery('.pirate-forms-file-upload-button').on('click', function () { | ||
var $button = jQuery(this); | ||
$button.parent().find('input[type=file]').on('change', function(){ | ||
$button.parent().find('input[type=text]').val(jQuery(this).val()).change(); | ||
}); | ||
$button.parent().find('input[type=file]').focus().click(); | ||
}); | ||
jQuery( '.pirate-forms-file-upload-input' ).on( 'click', function () { | ||
jQuery( this ).parent().find( '.pirate-forms-file-upload-button' ).trigger( 'click' ); | ||
} ); | ||
jQuery( '.pirate-forms-file-upload-input' ).on( 'focus', function () { | ||
jQuery( this ).blur(); | ||
} ); | ||
} ); | ||
|
||
jQuery('.pirate-forms-file-upload-input').on('click', function(){ | ||
jQuery(this).parent().find('.pirate-forms-file-upload-button').trigger('click'); | ||
}); | ||
jQuery('.pirate-forms-file-upload-input').on('focus', function(){ | ||
jQuery(this).blur(); | ||
}); | ||
}); | ||
jQuery( window ).load( function () { | ||
'use strict'; | ||
if ( jQuery( '.pirate_forms_wrap' ).length ) { | ||
jQuery( '.pirate_forms_wrap' ).each( function () { | ||
var formWidth = jQuery( this ).innerWidth(); | ||
var footerWidth = jQuery( this ).find( '.pirate-forms-footer' ).innerWidth(); | ||
if ( footerWidth > formWidth ) { | ||
jQuery( this ).find( '.contact_submit_wrap, .form_captcha_wrap, .pirateform_wrap_classes_spam_wrap' ).css( {'text-align' : 'left', 'display' : 'block' } ); | ||
} | ||
} ); | ||
} | ||
} ); |