Commit 1122f99b authored by Devin Carlson's avatar Devin Carlson Committed by Paris Liakos

Issue #1785546 Invalid markup: Media uses non-unique ids ex: scrollbox and container

parent a0d2c0df
......@@ -10,7 +10,7 @@
?>
<?php print $wrapper_prefix; ?>
<div id="scrollbox" class="clearfix">
<div class="clearfix">
<?php print $list_type_prefix; ?>
<?php foreach ($rows as $id => $row): ?>
<li id="media-item-<?php print $row->fid; ?>" class="<?php print $classes_array[$id]; ?>">
......
......@@ -81,7 +81,7 @@ function template_preprocess_media_views_view_media_browser(&$vars) {
$vars['class'] = implode(' ', $class);
$vars['wrapper_class'] = implode(' ', $wrapper_class);
$vars['wrapper_prefix'] = '<div id="container" class="' . implode(' ', $wrapper_class) . '">';
$vars['wrapper_prefix'] = '<div class="' . implode(' ', $wrapper_class) . '">';
$vars['wrapper_suffix'] = '</div>';
$vars['list_type_prefix'] = '<' . $handler->options['type'] . ' id="media-browser-library-list" class="' . implode(' ', $class) . '">';
$vars['list_type_suffix'] = '</' . $handler->options['type'] . '>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment