Commit 05ea0f43 authored by Alexis Piéplu's avatar Alexis Piéplu
Browse files

Correct id to class

parent ec18eeb1
......@@ -7,7 +7,7 @@
(function ($) {
Drupal.behaviors.sharerOpener = {
attach: function (context, settings) {
$('#sharer-toolbar-list', context).find('.shareLink__link').click(function () {
$('.sharer-toolbar-list', context).find('.shareLink__link').click(function () {
// Parse URL to get protocol
var parser = document.createElement('a');
......
......@@ -6,9 +6,9 @@
*/
?>
<div id="sharer-toolbar-container" class="shareLink">
<button id="sharer-toolbar-btn" class="shareLink__trigger"><?php print t($title); ?></button>
<ul id="sharer-toolbar-list" class="shareLink__list">
<div class="sharer-toolbar-container shareLink">
<button class="sharer-toolbar-btn shareLink__trigger"><?php print t($title); ?></button>
<ul class="sharer-toolbar-list shareLink__list">
<?php foreach ($sharers as $sid => $sharer) : ?>
<li class="shareLink__item shareLink__item--<?php print $sid; ?>">
<a class="shareLink__link shareLink__link--<?php print $sid; ?>" href="<?php print $sharer['url']; ?>" data-title="<?php print t($sharer['label']); ?>">
......
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