Skip to content

Commit 86c40a3

Browse files
author
Chris Gårdenberg
committed
Fixing a selector that was too generous against validation
1 parent d842a18 commit 86c40a3

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
## [Unreleased]
44
### Added
55

6+
## [0.10.24]
7+
### Added
8+
- Fixed validation-bug in javascript if you only had the contact person as a participant.
9+
610
## [0.10.23]
711
### Added
812
- Added pluralized text to the shortcode that shows course days `[eduadmin-detailinfo coursedays]`
@@ -358,7 +362,8 @@
358362
### Added
359363
- Added inquiry support in course
360364

361-
[Unreleased]: https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v0.10.23...HEAD
365+
[Unreleased]: https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v0.10.24...HEAD
366+
[0.10.24]: https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v0.10.23...v0.10.24
362367
[0.10.23]: https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v0.10.22...v0.10.23
363368
[0.10.22]: https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v0.10.21...v0.10.22
364369
[0.10.21]: https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v0.10.20...v0.10.21

content/script/frontendjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ var eduBookingView = {
404404
return (sum % 10) === 0;
405405
}
406406

407-
var civicRegNoFields = jQuery( '.eduadmin-civicRegNo:not(.template)' );
407+
var civicRegNoFields = jQuery( '.participantItem:not(.template) .eduadmin-civicRegNo' );
408408
for ( var i = 0; i < civicRegNoFields.length; i++ ) {
409409
var field = civicRegNoFields[i];
410410
if ( !__isValid( field ) ) {

eduadmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function edu_register_session() {
1616
* Plugin URI: http://www.eduadmin.se
1717
* Description: EduAdmin plugin to allow visitors to book courses at your website
1818
* Tags: booking, participants, courses, events, eduadmin, lega online
19-
* Version: 0.10.23
19+
* Version: 0.10.24
2020
* GitHub Plugin URI: multinetinteractive/eduadmin-wordpress
2121
* GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
2222
* Requires at least: 3.0

0 commit comments

Comments
 (0)