Commit b4c5b741 authored by Philippe Mouchel's avatar Philippe Mouchel
Browse files

Merge branch 'Correct_id_and_more' into '7.x'

Correct id to class

Class usage insted of id

@test: Je n'ai pas put voir si cela les faisant échouer (erreur behat), avec une rapide recherche dans les fichier, cela ne devrais pas avoir d'incidences

See merge request !3
parents 77e69349 05ea0f43
......@@ -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