Commit Graph

40 Commits

Author SHA1 Message Date
Michal Kleiner
0dfd2990dd
Use window.ss.config provided adminUrl (#1211)
Co-authored-by: Michal Kleiner <michal.kleiner@cub3.com>
2023-06-07 15:27:20 +12:00
Guy Sartorelli
b2ef93838c Merge branch '5.12' into 5.13 2022-05-27 11:32:55 +12:00
Sabina Talipova
0c066a3cfc FIX Add skipping argument and new behat tests 2022-05-25 13:11:29 +12:00
Rens
6f34d27c48 Fix hardcoded admin urls 2022-03-24 08:29:29 +01:00
Steve Boyd
d1822650db DEP Update JS dependencies 2021-11-23 11:00:40 +13:00
Joon Yoon
60931791fb
ENH Scroll back to top after pressing PREV/NEXT buttons (#1109)
* MINOR: scrolling back to top after submission

* BUILD

Co-authored-by: Nicolaas <github@sunnysideup.co.nz>
Co-authored-by: nicolaas@ninasimone <nt@sunnysideup.co.nz>
2021-09-16 11:23:56 +12:00
Steve Boyd
a617be30fe Merge branch '5.8' into 5 2021-03-11 14:00:06 +13:00
Steve Boyd
9eaee41282 ENH Use yarn and webpack to upgrade jquery 2021-03-04 17:05:55 +13:00
Garion Herman
ad0c8ae52f DEP Rebuild assets after node-sass update 2020-11-17 11:38:47 +13:00
Steve Boyd
f5d07aa682 FIX Check hidden inputs exist to prevent browser alert when submitting form 2020-09-02 13:21:53 +12:00
Garion Herman
792fd82419 FIX Place validation messages on .field if .middleColumn is missing
Checkbox and OptionSet fields attempt to place validation errors in
.middleColumn to align them with the label, but in some custom themes
this is not available, so the error is swallowed instead. Instead, we
should place it in the main wrapping .field element as a fallback.
2020-07-22 15:48:00 +12:00
Maxime Rainville
25978d3c58 Clean up tests 2020-06-12 00:55:12 +12:00
Maxime Rainville
df120133ab Move confirm folder logic to a dedicated controller 2020-06-11 19:53:46 +12:00
Maxime Rainville
dc5ce0000a BUG Fix confirm upload form modal on Elemental block 2020-06-11 15:17:13 +12:00
Andre Kiste
3b40be3b8f
NEW Add folder confirmation modal when adding a new EditableFileField to a userform. (#972) 2020-06-10 16:59:01 +12:00
Maxime Rainville
09ea65edc7 Merge branch '5.5' into 5 2020-05-26 15:13:09 +12:00
Mojmir Fendek
6276e990c1 BUG: Better anchor fallback 2020-05-05 10:18:25 +12:00
Jess Champion
25bfc9eaf5 Required fields can have display rules. Hidden required fields are dynamically excluded from server and client side validation. 2020-01-10 10:41:59 +13:00
Maxime Rainville
b92143a776 Upgrade dependencies 2019-11-12 07:32:26 +13:00
Robbie Averill
1386f1b80f Merge branch '5.4' 2019-06-27 14:16:02 +12:00
Adrian Humphreys
701460505e Form submission now triggers an event 2019-06-13 08:59:13 +12:00
Robbie Averill
181e0de171 FIX Multi page userforms now display their step titles, which were previously broken 2019-05-17 11:12:27 +12:00
NightjarNZ
1d0c347d7f FIX correct userform reference & avoid submit errors
"Uncaught TypeError: Cannot read property 'data' of undefined
Was being reported when attempting to submit a form, which would
then trigger the "are you sure" functionality which should only
show when attempting to browse away from a page when changes to the
form have been made.
2019-03-24 14:35:19 +13:00
Robbie Averill
21813ef698 Rebuild dist files 2019-03-19 12:50:03 +13:00
Robbie Averill
808b6e7702 FIX Upgrade javascript dependencies and add babel-loader to ensure yarn build works 2019-03-18 12:06:40 +13:00
Loz Calver
23abafdef4 FIX: Multiple multi-page forms on one page 2019-01-18 14:37:01 +00:00
Robbie Averill
9f79218612 Merge branch '5.2'
# Conflicts:
  #	client/dist/styles/userforms-cms.css
  #	client/src/styles/userforms-cms.scss
2018-07-26 15:19:06 +12:00
Nicholas Sorokin
d2ddaddede Replace class "Actions" with "btn-toolbar" 2018-07-02 17:04:14 +09:30
Shenghan Chen
33044ac917 FIX #759: Enable navigating to former pages via page number button in multi-page userforms.
FIX #759: build distributed version of js

FIX #759

Enable navigating to former pages via page number button in multi-page userforms.
2018-05-21 00:18:16 +12:00
Simon Erkelens
caab51122b Fix the each loop to propperly get the field passed in 2018-04-12 17:18:57 +12:00
Robbie Averill
4e285c4142 FIX Re-enable step progress and navigation for multi page forms 2018-03-21 11:33:19 +13:00
Dylan Wagstaff
46460c0e7c FIX Enhance JS for multiple userform instances (#715)
After testing it seems that having multiple user defined forms on a page
has already been added as a feature. However various load time dynamically
generated javascript segments had not been adapted to suit. Now they
have.

Also fixed a variable that no longer exists in the external requirements
from preventing a webpack build.
2018-02-12 16:56:36 +13:00
Raissa North
6cd679e2b9 FIX Add missing single quote in UserForms.js 2018-01-10 16:48:10 +13:00
Dylan Wagstaff
7f208ee927 FIX javascript errors enacting default functionality
Mostly to do with translations, however the errors meant the front end
forms largely didn't work at all. Some of this was to do with the scoping
of `this` in es6 arrow functions, compared to the legacy code with entwine
that uses the fuller `function` definition. Reinstate missing dependency
for translations to function too.
2017-11-20 15:16:03 +13:00
Robbie Averill
9804966257 Merge branch '4' 2017-10-06 10:36:10 +13:00
Robbie Averill
8e9da3f97d FIX Use correct controller name for ping AJAX request 2017-09-26 14:15:19 +13:00
Sacha Judd
bd955d7274 NEW Remove class hidden-on-hover and update styles for userforms ss4 2017-09-06 14:23:34 +12:00
Robbie Averill
1bbc473ed7 FIX Update namespaces in Javascript and CSS, fix some Entwine bindings 2017-08-24 15:14:39 +12:00
Sacha Judd
51631a167a NEW Add sass-lint configuration and refactor. Refactor JS for AirBnB ES6 syntax 2017-08-22 12:08:08 +12:00
Sacha Judd
75c4d25b8f NEW Add silverstripe-webpack config and move files to webpack friendly location 2017-08-21 11:12:25 +12:00