File tree 2 files changed +5
-5
lines changed
assets/javascripts/modules
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
4
4
( function ( Modules ) {
5
5
function TrackLinks ( ) { }
6
6
7
- TrackLinks . prototype . start = function ( $module ) {
8
- $module = $module [ 0 ]
9
- var category = $module . getAttribute ( 'data-track-links-category' )
10
- var links = $module . querySelectorAll ( 'a' )
7
+ TrackLinks . prototype . start = function ( $element ) {
8
+ $element = $element [ 0 ]
9
+ var category = $element . getAttribute ( 'data-track-links-category' )
10
+ var links = $element . querySelectorAll ( 'a' )
11
11
12
12
for ( var i = 0 ; i < links . length ; i ++ ) {
13
13
links [ i ] . addEventListener ( 'click' , function ( event ) {
Original file line number Diff line number Diff line change 9
9
10
10
< div class ="govuk-grid-row ">
11
11
< div class ="govuk-grid-column-two-thirds content-bottom-margin ">
12
- < div class ="responsive-bottom-margin ">
12
+ < div class ="responsive-bottom-margin " data-module =" track-links " data-track-links-category =" Briefings page " >
13
13
<%= render "govuk_publishing_components/components/govspeak" , {
14
14
direction : page_text_direction ,
15
15
} do %>
You can’t perform that action at this time.
0 commit comments