From 2dac797704dcdc0293a7989c56cbb86be7a7dfde Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 5 Dec 2018 16:26:53 +0300 Subject: floatingTitle-related fixes --- js/Headlines.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'js/Headlines.js') diff --git a/js/Headlines.js b/js/Headlines.js index 9da7f7149..3a9f323bb 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -173,15 +173,11 @@ define(["dojo/_base/declare"], function (declare) { ft.setAttribute("data-article-id", id); ft.innerHTML = header.innerHTML; - ft.firstChild.innerHTML = "" + ft.firstChild.innerHTML; - this.initFloatingMenu(); + ft.select(".dijitCheckBox")[0].outerHTML = "expand_more"; - const cb = ft.select(".rchk")[0]; + this.initFloatingMenu(); - if (cb) - cb.parentNode.removeChild(cb); } if (row.hasClassName("Unread")) @@ -1005,6 +1001,7 @@ define(["dojo/_base/declare"], function (declare) { const menu = new dijit.Menu({ id: "floatingMenu", + selector: ".hlMenuAttach", targetNodeIds: ["floatingTitle"] }); -- cgit v1.2.3