Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate new file fields #2775

Merged
merged 105 commits into from
Nov 20, 2018
Merged
Show file tree
Hide file tree
Changes from 53 commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
a7f60d4
Merge branch 'feature/2771' into feature/2766
Oct 18, 2018
8f4043c
#2766 add client for front-end render
Oct 18, 2018
d0a6192
basic POC for rendering via React, state managed with CF State #2766
Oct 18, 2018
3f2f791
Merge branch 'feature/2771' into feature/2766
Oct 19, 2018
b96204b
#2766 get cf2 field rendering working correctly for the most part
Oct 19, 2018
26b7a9c
impliment disbale conditionals for cf2 fields #2766
Oct 19, 2018
51184d1
#2766 move new field rendering to a field group component and write t…
Oct 19, 2018
f449034
#2766 set required and disabled props more intelligently
Oct 19, 2018
ba2d295
get validation slightly working for cf2 fields #2766
Oct 19, 2018
769cfe2
add cf2 field values to submit request #2766
Oct 19, 2018
b727677
#2766 update state with default for cf2 fields correctly
Oct 20, 2018
a52b1fc
move input to its own component #2771
Oct 20, 2018
9ecc5d6
#2776 additional work on file field cf2 rendering and conditionals
Oct 23, 2018
800f711
#2766 more work on cf2 file fields
Oct 23, 2018
ec664fc
#2771 php5 compatible include
Oct 23, 2018
9b020f5
Merge branch 'develop' into feature/2766
Oct 24, 2018
93b3f13
Merge branch 'develop' into feature/2766
Oct 24, 2018
4ff1985
endpoint for uploading files from file fields against #2766
Oct 24, 2018
626b610
add one command for all php tests #2766
Oct 25, 2018
f371307
seperate file upload logic from rest api handler #2766
Oct 25, 2018
3aba811
seperate file upload logic from rest api handler #2766
Oct 25, 2018
8fbf3f8
test new upload handlers #2766
Oct 25, 2018
d215155
make file process abstraction more sensible #2766
Oct 25, 2018
757fbce
#2766 respect caldera_forms_upload_directory when uploading cf2 file …
Oct 25, 2018
4ab7fba
check file types before saving #2766
Oct 25, 2018
fb9ca9c
use correct exception to response methods in API handler #2766
Oct 25, 2018
200bfb7
send file object to state and read bianaries and hashes outside of re…
Oct 25, 2018
791beab
send file object to state and read bianaries and hashes outside of re…
Oct 25, 2018
937886d
#2766 work on uploading files with correc thashes
Oct 25, 2018
cba3b5f
Design the dropzone as the CF btn
New0 Oct 26, 2018
3030301
Clean dropzone inline styles
New0 Oct 26, 2018
539c3fc
Set local state to list files
New0 Oct 26, 2018
19283f6
Add a by file remove handler
New0 Oct 26, 2018
abad92d
#2766 import React in FileInput
Oct 26, 2018
9a940b5
#2766 (failing tests) that would show file uploads are linked to com…
Oct 26, 2018
dbf12fe
#2766 server-side handling for processing file fields
Oct 26, 2018
bd88ae6
add inline docs and tests for new file field logic #2776
Oct 26, 2018
9056df9
#2766 write description for e2e tests for new file fields
Oct 26, 2018
22e0677
#2766 abstract our wp_mail test utils before testing new file fields …
Oct 27, 2018
43a544c
(re)Make FileInput a stateless component
New0 Oct 27, 2018
1e350de
Add tests (not working yet) for wp_mail + new file fields #2766
Oct 27, 2018
6714093
Merge branch 'feature/2766' of github.com:CalderaWP/Caldera-Forms int…
Oct 27, 2018
e3cae9d
WIP Styles build and enqueue
New0 Oct 30, 2018
c6421a4
enqueue render style if not loaded with form style #2766
Oct 30, 2018
595bcc8
#2766 make files upload, doesn't link to submission properly yet
Oct 30, 2018
36bb1b9
Remove enqueue 'render' styles when not all forms stylesheets are set
New0 Oct 30, 2018
c72dca5
Merge branch 'feature/2766' of github.com:CalderaWP/Caldera-Forms int…
Oct 30, 2018
e19b9ed
#2766 working on wiring up file field submissions
Oct 30, 2018
51c576e
#2766 fix privacy client related issues for file fields (IE don't loa…
Oct 30, 2018
32d6ff7
add save handler requirment for Handler contract #2766
Oct 30, 2018
e405c72
wait untill all files are uploaded to request form submit #2766
Oct 30, 2018
d727e1e
get some integration tests passing for new file fields #2766
Oct 30, 2018
60f89fa
Never enqueue clients/render stylesheet, just use dev:grunt #2766
New0 Oct 31, 2018
7c1c1b1
Work on html and styles
New0 Oct 31, 2018
94f1560
command to see server URL
Nov 1, 2018
958abd7
more tests for file field submission #2766
Nov 1, 2018
2603d30
remove extra fiel in last commit #2766
Nov 1, 2018
96e0d91
add tests for portal renderer #2766
Nov 1, 2018
4864322
one true way to create Enzyme adapter #2766
Nov 1, 2018
832e13e
some tests for main form render methods #2766
Nov 1, 2018
450de92
test and inline doc clean ups #2766
Nov 1, 2018
3e376b9
#2766 hash files before uploading and check files once uploaded
Nov 2, 2018
5d38eab
missing inline docs for new code #2766
Nov 2, 2018
118bde4
#2766 display server-side errors when file upload is rejected
Nov 2, 2018
77313f5
smarter way to handle cf2 file registration #2677
Nov 2, 2018
9eafdd7
allow jpeg files when jpg files are allowed and allow files to be re-…
Nov 2, 2018
2724d29
pass accept argument to dropzone. Does not cause it to reject yet #2766
Nov 2, 2018
c9e1ff5
#2766 pass file field accept argument with mime types
Nov 2, 2018
6734d80
block submission when file field is empty and required and allow it t…
Nov 3, 2018
f514415
fix file paths for loading tests forms/pages #2766
Nov 5, 2018
a026719
load test forms at caldera_forms_includes_complete #2766
Nov 5, 2018
27dd274
WIP Cypress tests for drop event #2766
New0 Nov 5, 2018
323d96c
#2766 target file field dropzone in cypress fixture
Nov 5, 2018
cb0f428
#2766 setup for enzyme testing of file fields
Nov 5, 2018
d3fb9c4
Testing Cypress tests #1766
New0 Nov 6, 2018
1e92ca8
#2766 faling tests for work left to be done on file fields
Nov 6, 2018
dcf98b6
Preview Options and multiple option #2766
New0 Nov 7, 2018
a49d116
Changed render preview images conditions #2766
New0 Nov 7, 2018
09cd536
FileInput functions as props #2766
New0 Nov 8, 2018
6e31b75
Small changes to FileInput #2766
New0 Nov 9, 2018
67c1427
[WIP] Tests for FileInput.js and progress based on tests #2766
New0 Nov 14, 2018
c850d41
Make button text always an option #2766
New0 Nov 14, 2018
7891502
Adapt unit test for default button text #2766
New0 Nov 15, 2018
e497b8e
Remove unnecessary unit test
New0 Nov 15, 2018
9d76ad6
Create a proper job manager for deleting transients etc. (#2802)
Nov 15, 2018
be6d6ea
#2766 more cypress tests to ensure that if file fields are not requir…
Nov 16, 2018
0b0c94e
Code change based on @Shelob9 comment ( link in description )
New0 Nov 19, 2018
4d04990
Resolve conflicts #2766
New0 Nov 19, 2018
a8fa334
fix extra comma in conditionals.js causing minification error #2766
Nov 19, 2018
10bc215
cleanup in the test files before adding new tests #2766
Nov 19, 2018
8800eed
cleanup in the test files before adding new tests #2766
Nov 19, 2018
d76d57e
test to prove that new file field validation does NOT set isRequired …
Nov 19, 2018
2b48a85
#2766 tests to prove that the file field does not indicate that it is…
Nov 19, 2018
71cc344
clean up and inline docs in the CalderaFormsFieldGroup component #2766
Nov 19, 2018
9e33d6d
tests to prove that the field group component is NOT showing a * indi…
Nov 19, 2018
7ff3749
#2766 tests to prove that the isRequired prop is not set correctly se…
Nov 19, 2018
d1f48a5
#2766 cf2 fiel field required indicator
Nov 19, 2018
6baa6fd
set icon for file fields #2766
Nov 19, 2018
7776bbc
#2766 update test data to use field.isRequired
Nov 19, 2018
0b8e88c
correct the isRequired check #2766
Nov 19, 2018
6859891
Merge branch 'develop' of github.com:CalderaWP/Caldera-Forms into fea…
Nov 19, 2018
3365fff
#2766 load tables for new job queue correctly
Nov 19, 2018
c6f6877
#2766 Make Text Translatable and let the button disabled
New0 Nov 20, 2018
6505f50
remove console logs in tests #2766
Nov 20, 2018
954c14e
minor cleanups #2766
Nov 20, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ wordpress
wp-content
cypress/screenshots
cypress/videos
build
build

wp-test-case
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ module.exports = function (grunt) {
'assets/build/css/caldera-grid.min.css',
'assets/build/css/caldera-alert.min.css',
'assets/build/css/caldera-form.min.css',
'assets/build/css/fields.min.css'
'assets/build/css/fields.min.css',
'clients/render/build/style.min.css'
],
dest: 'assets/css/caldera-forms-front.css'
},
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ The local server is [http://localhost:8228](http://localhost:8228)

#### Commands
##### Composer
* `composer test:php` - Run PHP tests -- isolated unit tests and the WordPress integration tests.
* `composer dev:install` - Installs dependencies, Docker-based test environment and sets up test forms.
* `composer dev:destroy` - Deletes dependencies and the Docker-based test environment.
* `composer wp:install` - Installs Docker-based test environment.
Expand All @@ -123,6 +124,7 @@ Probably don't use these directly. They will change. Must be prefaced with `dock
* `wp cf delete-test-forms` - Delete test forms
* `wp cf create-test-pages` - Import test pages
* `wp cf delete-test-pages` - Delete test pages

### Release To WordPress.org
##### Requires
* [svn](https://subversion.apache.org/quick-start#installing-the-client)
Expand Down
Empty file modified assets/build/css/admin.min.css
100755 → 100644
Empty file.
Empty file modified assets/build/css/caldera-alert.min.css
100755 → 100644
Empty file.
Empty file modified assets/build/css/caldera-form.min.css
100755 → 100644
Empty file.
4 changes: 4 additions & 0 deletions assets/build/css/caldera-forms-front.min.css

Large diffs are not rendered by default.

Empty file modified assets/build/css/caldera-grid.min.css
100755 → 100644
Empty file.
Empty file modified assets/build/css/caldera-modals.min.css
100755 → 100644
Empty file.
Empty file modified assets/build/css/caldera-table.min.css
100755 → 100644
Empty file.
Empty file modified assets/build/css/cfont.min.css
100755 → 100644
Empty file.
Empty file modified assets/build/css/dashicon.min.css
100755 → 100644
Empty file.
Empty file modified assets/build/css/editor-grid.min.css
100755 → 100644
Empty file.
Empty file modified assets/build/css/entry-viewer-2.min.css
100755 → 100644
Empty file.
60 changes: 0 additions & 60 deletions assets/build/css/fields.min.css

This file was deleted.

Empty file modified assets/build/css/fonts/caldera-forms.eot
100755 → 100644
Empty file.
Empty file modified assets/build/css/fonts/caldera-forms.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/css/fonts/caldera-forms.ttf
100755 → 100644
Empty file.
Empty file modified assets/build/css/fonts/caldera-forms.woff
100755 → 100644
Empty file.
Empty file modified assets/build/css/fonts/cf-raty.eot
100755 → 100644
Empty file.
Empty file modified assets/build/css/fonts/cf-raty.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/css/fonts/cf-raty.ttf
100755 → 100644
Empty file.
Empty file modified assets/build/css/fonts/cf-raty.woff
100755 → 100644
Empty file.
Empty file modified assets/build/css/fonts/cfont.eot
100755 → 100644
Empty file.
Empty file modified assets/build/css/fonts/cfont.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/css/fonts/cfont.ttf
100755 → 100644
Empty file.
Empty file modified assets/build/css/fonts/cfont.woff
100755 → 100644
Empty file.
Empty file modified assets/build/css/fonts/icon.eot
100755 → 100644
Empty file.
Empty file modified assets/build/css/fonts/icon.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/css/fonts/icon.ttf
100755 → 100644
Empty file.
Empty file modified assets/build/css/fonts/icon.woff
100755 → 100644
Empty file.
Binary file removed assets/build/css/minicolor-colors.png
Binary file not shown.
Binary file removed assets/build/css/minicolor-trigger.png
Binary file not shown.
Empty file modified assets/build/css/modals.min.css
100755 → 100644
Empty file.
Empty file modified assets/build/css/processors-edit.min.css
100755 → 100644
Empty file.
Empty file modified assets/build/css/remodal-default-theme.min.css
100755 → 100644
Empty file.
Empty file modified assets/build/css/remodal.min.css
100755 → 100644
Empty file.
1 change: 0 additions & 1 deletion assets/build/css/theme-default.min.css

This file was deleted.

Empty file modified assets/build/images/align-justify.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/calculator.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/caldera-globe-logo-sm.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/cart-plus.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/cc-amex.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/cc-discover.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/cc-mastercard.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/cc-paypal.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/cc-stripe.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/cc-visa.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/cf-pro-logo.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/chain.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/checkmark.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/cloud-upload.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/cog.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/credit-card.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/envelope-o.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/envelope-square.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/eye.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/build/images/field.png
100755 → 100644
Empty file modified assets/build/images/folder-open-o.svg
100755 → 100644
Empty file modified assets/build/images/howto.gif
100755 → 100644
Empty file modified assets/build/images/lgo-icon.png
100755 → 100644
Empty file modified assets/build/images/list.svg
100755 → 100644
Empty file modified assets/build/images/loading.gif
100755 → 100644
Empty file modified assets/build/images/lock.svg
100755 → 100644
Empty file modified assets/build/images/mobile.svg
100755 → 100644
Empty file modified assets/build/images/new-icon.png
100755 → 100644
Empty file modified assets/build/images/paint-brush.svg
100755 → 100644
Empty file modified assets/build/images/paypal.svg
100755 → 100644
Empty file modified assets/build/images/plus.svg
100755 → 100644
Empty file modified assets/build/images/processor.png
100755 → 100644
Empty file modified assets/build/images/ra.svg
100755 → 100644
Empty file modified assets/build/images/slack.svg
100755 → 100644
Empty file modified assets/build/images/star.svg
100755 → 100644
Empty file modified assets/build/images/user.svg
100755 → 100644
Empty file modified assets/build/images/volume-control-phone.svg
100755 → 100644
Empty file modified assets/build/images/wordpress.svg
100755 → 100644
Empty file modified assets/build/js/api/client.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/api/stores.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/caldera-clippy.min.js
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions assets/build/js/caldera-forms-front.min.js

Large diffs are not rendered by default.

Empty file modified assets/build/js/caldera-modals.min.js
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion assets/build/js/conditionals.min.js

Large diffs are not rendered by default.

Empty file modified assets/build/js/edit.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/entry-viewer-2.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/fields.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/formobject.min.js
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion assets/build/js/frontend-script-init.min.js

Large diffs are not rendered by default.

Empty file modified assets/build/js/handlebars.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/html5.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/al.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ar.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/bg.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ca.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/cs.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/cs.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/da.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/de.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/de.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/el.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/el.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/en.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/en.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/es.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/eu.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/fa.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/fi.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/fi.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/fr.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/fr.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/he.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/he.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/hr.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/hr.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/hu.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/hu.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/id.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/id.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/it.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/it.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ja.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ja.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ko.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/lt.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/lt.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/lv.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/lv.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ms.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ms.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ms_MY.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ms_MY.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/nl.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/nl.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/no.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/pl.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/pt-br.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/pt-pt.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ro.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ro.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ru.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ru.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/sk.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/sk.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/sl.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/sl.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/sq.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/sr.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/sr.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/sv.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/sv.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/th.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/tr.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ua.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/ua.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/uk.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/uk.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/zh_cn.extra.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/zh_cn.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/i18n/zh_tw.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/inputmask.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/jquery-baldrick.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/jquery.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/modals.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/parsley-aria.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/polyfiller.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/remodal.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/shortcode-insert.min.js
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion assets/build/js/state/events.min.js
100755 → 100644

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

2 changes: 1 addition & 1 deletion assets/build/js/state/state.min.js

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

Empty file modified assets/build/js/support-page.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/viewer/init.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/viewer/viewer.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/vue.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/vue/status-component.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/vue/vue-filter.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/vue/vue.min.js
100755 → 100644
Empty file.
Empty file modified assets/build/js/wp-baldrick-full.min.js
100755 → 100644
Empty file.
4 changes: 3 additions & 1 deletion assets/css/caldera-forms-front.css

Large diffs are not rendered by default.

43 changes: 34 additions & 9 deletions assets/js/ajax-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,22 +129,43 @@ jQuery(function($){

ev.preventDefault();

var form = $(el),
buttons = form.find(':submit');

if( form.data('_cf_manual') ){
form.find('[name="cfajax"]').remove();
var $form = $(el),
buttons = $form.find(':submit');
var pending = [];

/**
* This event is triggered directly before the request for form submission is made
*
* Runs after cf.form.submit
*
* @since 1.8.0
*/
$( document ).trigger( 'cf.form.request', {
$form: $form,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@New0 Should we be sharing phpStorm settings? Not sure mine are to blame or yours, but this is not optimal.

We need eslint or prettier #2485

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely @Shelob9, do you to share your code style settings ?
https://www.jetbrains.com/help/idea/copying-code-style-settings.html

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL I have that post in my list of things to do. I'll try it out today.

formIdAttr: $form.attr( 'id' )
});

//Check if any cf2 fields are blocking submit
var cf2 = window.cf2[ $form.attr( 'id' ) ];
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@New0 I shoved it into a window scoped object I was already using. That's better than a window scope object, I think.

if( 'object' === typeof cf2 ){
if( cf2.hasOwnProperty( 'pending' ) && cf2.pending.length ){
return false;
}
}

if( $form.data('_cf_manual') ){
$form.find('[name="cfajax"]').remove();
return false;
}

if( !form.data( 'postDisable' ) ){
if( !$form.data( 'postDisable' ) ){
buttons.prop('disabled',true);
}


if( typeof cf_uploader_filelist === 'object' ){
// verify required
form.find('.cf-uploader-trigger').slideUp();
$form.find('.cf-uploader-trigger').slideUp();
// setup file uploader
var has_files = false;
var count = cf_upload_queue.length;
Expand All @@ -161,7 +182,7 @@ jQuery(function($){
data.append( field.data('field'), cf_uploader_filelist[ file ].file );
data.append( 'field', field.data('field') );
data.append( 'control', field.data('controlid') );
cf_push_file_upload( form, file_number, data );
cf_push_file_upload( $form, file_number, data );
field.val('');//@see https://github.com/CalderaWP/Caldera-Forms/issues/2514#issuecomment-395213433
field.attr('type','hidden');
field.val(field.data('controlid'));
Expand All @@ -176,6 +197,10 @@ jQuery(function($){
}
}





},
error : function( obj ){
if( obj.jqxhr.status === 404){
Expand Down Expand Up @@ -286,4 +311,4 @@ jQuery(function($){
};

resBaldrickTriggers();
});
});
Loading