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

luci2-ui-base: fix l2.cgi.js validation messages #21

Closed
wants to merge 1 commit into from

Conversation

feckert
Copy link
Contributor

@feckert feckert commented Jul 7, 2016

Signed-off-by: Florian Eckert Eckert.Florian@googlemail.com

@jow-
Copy link
Owner

jow- commented Jul 7, 2016

This commit looks wrong to me, what you're actually fixing here?

@feckert
Copy link
Contributor Author

feckert commented Jul 7, 2016

When the input will be validated then i want to see the range or min/max values what the input expects.

  • Now i see:

Must be a number between %d and %d

  • After that patch I see

Must be a number between 0 and 4294967295

@jow-
Copy link
Owner

jow- commented Jul 7, 2016

Ok but then use the format function to interpolate values:
gettext('Must be a number between %d and %d').format(min, max)

@feckert feckert force-pushed the fix_l2cgi_validation_messages branch from b7c096f to ff9c54f Compare July 7, 2016 07:59
Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
@feckert feckert force-pushed the fix_l2cgi_validation_messages branch from ff9c54f to 6fb62a8 Compare July 7, 2016 08:01
@jow-
Copy link
Owner

jow- commented Jul 7, 2016

Merged manually with two tiny white space changes, thanks!

@jow- jow- closed this Jul 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants