Feature proposal #1991
closedNew modern JS validations needed, inclusive for username and password length
Description
When selecting different minimum lengths for username or password the parameter is not taken into account when the JS validation is added. Proposing removal of JS validation or upgraded to ensure the parameter set is used.
Updated by krileon about 14 years ago
- Target version set to CB 1.3
- % Done changed from 0 to 20
backend validation appears resolved with CB 1.3, but frontend still not functional.
Updated by krileon about 14 years ago
- Status changed from New to Feedback
- Assignee set to beat
- Priority changed from Normal to High
Backend validation is requiring a page refresh then the JS error triggers instead of just displaying without refreshing. Attempting to port same usage to frontend results in same issue.
Updated by beat about 14 years ago
- Status changed from Feedback to Resolved
- Target version changed from CB 1.3 to CB 1.7
- % Done changed from 20 to 100
Will be fixed in CB 2.0 with new JS validations.
Updated by beat about 14 years ago
- Tracker changed from Bug to Feature proposal
- Subject changed from username and password length JS validation not functioning to New modern JS validations needed, inclusive for username and password length
This is now fixed for CB 2.0 with the new feature, so changing this issue to "new feature".
Updated by beat almost 14 years ago
- Target version changed from CB 1.7 to CB 1.4.0
To be reviewed, maybe we can skeeze it into 1.4 ?
Updated by beat almost 14 years ago
- Status changed from Resolved to Assigned
- % Done changed from 100 to 80
- Estimated time set to 10:00 h
r1361 adds that feature.
Still improvements to be made in user edit mode.
Updated by beat almost 14 years ago
- % Done changed from 80 to 90
- Estimated time changed from 10:00 h to 15:00 h
r1368 Added many more finesses in the validations:
- Tab tips highlighted in red and auto-selected on error on submit
- More precise error messages (translatable)
CSS files follow.
Updated by beat almost 14 years ago
r1370 adds a new parameter in text fields for minimum text-size value
Updated by beat almost 14 years ago
- Status changed from Assigned to Closed
- % Done changed from 90 to 100
r1372 adds the CSS classes: EDIT: WAS WRONG:
/* NewG Validations for CB 2.0: */
.cbValidationError input[type="text"], .cbValidationError input[type="password"], .cbValidationError input[type="file"], .cbValidationError input[type="image"], .cbValidationError textarea, .cbValidationError select {
border-color: red !important;
}
.cbValidationError input[type="radio"], .cbValidationError input[type="checkbox"] {
color: red !important;
}
.cbValidationError .titleCell, .cbValidationError label, h2.cbValidationErrorTabTip a {
color: red !important;
}
Updated by beat almost 14 years ago
also it was highlighting selects in editors! :
r1406 fixes the corresponding CSS classes in CB templates as follows:
/* NewG Validations for CB 2.0: */
.cbValidationError input[type="text"], .cbValidationError input[type="password"], .cbValidationError input[type="file"], .cbValidationError input[type="image"], .cbValidationError textarea, .cbValidationError select {
border-color: red !important;
}
.cbValidationError input[type="radio"], .cbValidationError input[type="checkbox"] {
color: red !important;
}
.cbValidationError .titleCell, .cbValidationError label, h2.cbValidationErrorTabTip a {
color: red !important;
}