Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
clientside_validation
Commits
8e063dd2
Commit
8e063dd2
authored
Jan 29, 2014
by
Peter Droogmans
Browse files
Issue #2149091 by torotil, grahamC | ardeso: Uploading Files produces JS error.
parent
10deab52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
clientside_validation.module
clientside_validation.module
+3
-0
No files found.
clientside_validation.module
View file @
8e063dd2
...
...
@@ -1154,6 +1154,8 @@ function _clientside_validation_set_regex_pcre($name, $title, &$js_rules, $expre
* Set validation rule for file fields that must have a certain extension.
*/
function
_clientside_validation_set_extensions
(
$name
,
$extensions
,
&
$js_rules
)
{
// @see https://drupal.org/comment/8428631#comment-8428631
/*
$extension_list = preg_replace('#,(?![^,]+,)#', ' or', implode(', ', $extensions));
$js_rules[$name]['accept'] = implode('|', $extensions);
$variables = array(
...
...
@@ -1163,6 +1165,7 @@ function _clientside_validation_set_extensions($name, $extensions, &$js_rules) {
'element_name' => $name
);
$js_rules[$name]['messages']['accept'] = theme('clientside_error', $variables);
*/
}
/**
...
...
Write
Preview
Markdown
is supported
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