summaryrefslogtreecommitdiff
path: root/js/Headlines.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-05 16:26:53 +0300
committerAndrew Dolgov <[email protected]>2018-12-05 16:26:53 +0300
commit2dac797704dcdc0293a7989c56cbb86be7a7dfde (patch)
treefb05b978105ecdb4b8001e0029e52b8573668b1b /js/Headlines.js
parentfa639df5882c492380875c4de38809511d6e6db6 (diff)
floatingTitle-related fixes
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-xjs/Headlines.js9
1 files changed, 3 insertions, 6 deletions
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 = "<img class='anchor marked-pic' src='images/page_white_go.png' " +
- "onclick=\"Article.cdmScrollToId(" + id + ", true)\">" + ft.firstChild.innerHTML;
- this.initFloatingMenu();
+ ft.select(".dijitCheckBox")[0].outerHTML = "<i class=\"material-icons anchor\" onclick=\"Article.cdmScrollToId(" + id + ", true)\">expand_more</i>";
- 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"]
});