Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
clientside_validation
Commits
d40ab853
Commit
d40ab853
authored
Mar 27, 2012
by
Peter Droogmans
Browse files
dpm removed from code
parent
da1ec364
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside_validation_html5/clientside_validation_html5.module
View file @
d40ab853
...
...
@@ -67,7 +67,7 @@ function clientside_validation_html5($form_id, $element, &$js_rules) {
$min
=
isset
(
$element
[
'#min'
])
?
$element
[
'#min'
]
:
$default_min
;
$max
=
isset
(
$element
[
'#max'
])
?
$element
[
'#max'
]
:
$default_max
;
$step
=
isset
(
$element
[
'#step'
])
?
$element
[
'#step'
]
:
1
;
dpm
(
strtolower
(
$step
)
!=
'any'
,
'step'
);
$is_decimal
=
strtolower
(
$step
)
==
'any'
||
(
floor
(
$step
)
!=
$step
||
floor
(
$min
)
!=
$min
);
if
(
$is_decimal
)
{
_clientside_validation_set_number_decimal
(
$el_name
,
$el_title
,
'.'
,
$js_rules
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment