mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 10:15:55 +00:00
WIP reshuffling of JS global context into separate logical objects
This commit is contained in:
@@ -93,7 +93,7 @@ class Af_Psql_Trgm extends Plugin {
|
||||
print " <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"$article_link\">".
|
||||
$line["title"]."</a>";
|
||||
|
||||
print " (<a href=\"#\" onclick=\"viewfeed({feed:".$line["feed_id"]."})\">".
|
||||
print " (<a href=\"#\" onclick=\"Feeds.viewfeed({feed:".$line["feed_id"]."})\">".
|
||||
htmlspecialchars($line["feed_title"])."</a>)";
|
||||
|
||||
print " <span class='insensitive'>($sm)</span>";
|
||||
|
||||
@@ -21,7 +21,7 @@ class Close_Button extends Plugin {
|
||||
if (!get_pref("COMBINED_DISPLAY_MODE")) {
|
||||
$rv = "<img src=\"plugins/close_button/button.png\"
|
||||
class='tagsPic' style=\"cursor : pointer\"
|
||||
onclick=\"closeArticlePanel()\"
|
||||
onclick=\"Article.closeArticlePanel()\"
|
||||
title='".__('Close article')."'>";
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ function embedOriginalArticle(id) {
|
||||
|
||||
let c = false;
|
||||
|
||||
if (isCombinedMode()) {
|
||||
if (App.isCombinedMode()) {
|
||||
c = $$("div#RROW-" + id + " div[class=content-inner]")[0];
|
||||
} else if (id == getActiveArticleId()) {
|
||||
c = $$(".post .content")[0];
|
||||
@@ -22,7 +22,7 @@ function embedOriginalArticle(id) {
|
||||
Element.show(c);
|
||||
c.parentNode.removeChild(iframe);
|
||||
|
||||
if (isCombinedMode()) {
|
||||
if (App.isCombinedMode()) {
|
||||
cdmScrollToArticleId(id, true);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ function embedOriginalArticle(id) {
|
||||
Element.hide(c);
|
||||
c.parentNode.insertBefore(iframe, c);
|
||||
|
||||
if (isCombinedMode()) {
|
||||
if (App.isCombinedMode()) {
|
||||
cdmScrollToArticleId(id, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
|
||||
ready(function () {
|
||||
updateTitle = function () {
|
||||
App.updateTitle = function () {
|
||||
document.title = "Tiny Tiny RSS";
|
||||
};
|
||||
});
|
||||
|
||||
@@ -18,7 +18,7 @@ class Toggle_Sidebar extends Plugin {
|
||||
function hook_main_toolbar_button() {
|
||||
?>
|
||||
|
||||
<button dojoType="dijit.form.Button" onclick="collapse_feedlist()">
|
||||
<button dojoType="dijit.form.Button" onclick="Feeds.collapseFeedlist()">
|
||||
<img src="plugins/toggle_sidebar/application_side_list.png"
|
||||
title="<?php echo __('Collapse feedlist') ?>">
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user