mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 01:25:56 +00:00
experimental: add preference to show combined mode headlines as a 2 column grid
This commit is contained in:
12
js/Feeds.js
12
js/Feeds.js
@@ -321,8 +321,16 @@ const Feeds = {
|
||||
this._active_feed_id = id;
|
||||
this._active_feed_is_cat = is_cat;
|
||||
|
||||
App.byId("headlines-frame").setAttribute("feed-id", id);
|
||||
App.byId("headlines-frame").setAttribute("is-cat", is_cat ? 1 : 0);
|
||||
const container = App.byId("headlines-frame");
|
||||
|
||||
// TODO @deprecated: these two should be removed (replaced with data- attributes below)
|
||||
container.setAttribute("feed-id", id);
|
||||
container.setAttribute("is-cat", is_cat ? 1 : 0);
|
||||
// ^
|
||||
|
||||
container.setAttribute("data-feed-id", id);
|
||||
container.setAttribute("data-is-cat", is_cat ? "true" : "false");
|
||||
container.setAttribute("data-enable-grid", App.getInitParam("cdm_enable_grid") ? "true" : "false");
|
||||
|
||||
this.select(id, is_cat);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user