Skip to content

Commit

Permalink
fix modal not closing
Browse files Browse the repository at this point in the history
  • Loading branch information
constantology committed Nov 10, 2017
1 parent f16180e commit f9538bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/modal-download.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,17 @@ function actionModalFromClick (evt) {
const item = getItemByHTMLElement(evt.target);

let fire = true;

const trackingEvent = {};

trackingEvent.category = TRACKING.CATEGORY;
trackingEvent.contractID = USER_DATA.contract_id;
trackingEvent.product = TRACKING.CATEGORY;
trackingEvent.url = location.href;
trackingEvent.lang = item.lang;
trackingEvent.action = evt.target.getAttribute(ATTR_TRACKABLE);

if (item) {
trackingEvent.lang = item.lang;
trackingEvent.message = item.messageCode;
trackingEvent.article_id = item[DATA_ID_PROPERTY];
trackingEvent.syndication_content = item.type;
Expand Down

0 comments on commit f9538bf

Please sign in to comment.