mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
WIP reshuffling of JS global context into separate logical objects
This commit is contained in:
@@ -877,7 +877,7 @@ class Article extends Handler_Protected {
|
||||
$tags_str = "";
|
||||
|
||||
for ($i = 0; $i < $maxtags; $i++) {
|
||||
$tags_str .= "<a class=\"tag\" href=\"#\" onclick=\"viewfeed({feed:'".$tags[$i]."'})\">" . $tags[$i] . "</a>, ";
|
||||
$tags_str .= "<a class=\"tag\" href=\"#\" onclick=\"Feeds.viewfeed({feed:'".$tags[$i]."'})\">" . $tags[$i] . "</a>, ";
|
||||
}
|
||||
|
||||
$tags_str = mb_substr($tags_str, 0, mb_strlen($tags_str)-2);
|
||||
|
||||
@@ -139,7 +139,7 @@ class Dlg extends Handler_Protected {
|
||||
|
||||
$key_escaped = str_replace("'", "\\'", $key);
|
||||
|
||||
echo "<a href=\"javascript:viewfeed({feed:'$key_escaped'}) \" style=\"font-size: " .
|
||||
echo "<a href=\"#\" onclick=\"Feeds.viewfeed({feed:'$key_escaped'}) \" style=\"font-size: " .
|
||||
$size . "px\" title=\"$value articles tagged with " .
|
||||
$key . '">' . $key . '</a> ';
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ class Feeds extends Handler_Protected {
|
||||
$reply .= "<span class='r'>
|
||||
<a href=\"#\"
|
||||
title=\"".__("View as RSS feed")."\"
|
||||
onclick=\"displayDlg('".__("View as RSS")."','generatedFeed', '$feed_id:$is_cat:$rss_link')\">
|
||||
onclick=\"Utils.displayDlg('".__("View as RSS")."','generatedFeed', '$feed_id:$is_cat:$rss_link')\">
|
||||
<img class=\"noborder\" src=\"images/pub_set.png\"></a>";
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ class Feeds extends Handler_Protected {
|
||||
|
||||
//$reply .= "<option value=\"catchupPage()\">".__('Mark as read')."</option>";
|
||||
|
||||
$reply .= "<option value=\"displayDlg('".__("View as RSS")."','generatedFeed', '$feed_id:$is_cat:$rss_link')\">".__('View as RSS')."</option>";
|
||||
$reply .= "<option value=\"Utils.displayDlg('".__("View as RSS")."','generatedFeed', '$feed_id:$is_cat:$rss_link')\">".__('View as RSS')."</option>";
|
||||
|
||||
$reply .= "</select>";
|
||||
|
||||
@@ -392,7 +392,7 @@ class Feeds extends Handler_Protected {
|
||||
|
||||
$reply['content'] .= "<div data-feed-id='$feed_id' class='feed-titl'>".
|
||||
"<div style='float : right'>$feed_icon_img</div>".
|
||||
"<a class='title' href=\"#\" onclick=\"viewfeed({feed:$feed_id})\">".
|
||||
"<a class='title' href=\"#\" onclick=\"Feeds.viewfeed({feed:$feed_id})\">".
|
||||
$line["feed_title"]."</a>
|
||||
$vf_catchup_link</div>";
|
||||
|
||||
@@ -434,7 +434,7 @@ class Feeds extends Handler_Protected {
|
||||
if (@$line["feed_title"]) {
|
||||
$rgba = @$rgba_cache[$feed_id];
|
||||
|
||||
$reply['content'] .= "<span class=\"feed\"><a style=\"background : rgba($rgba, 0.3)\" href=\"#\" onclick=\"viewfeed({feed:$feed_id})\">".
|
||||
$reply['content'] .= "<span class=\"feed\"><a style=\"background : rgba($rgba, 0.3)\" href=\"#\" onclick=\"Feeds.viewfeed({feed:$feed_id})\">".
|
||||
truncate_string($line["feed_title"],30)."</a></span>";
|
||||
}
|
||||
}
|
||||
@@ -451,7 +451,7 @@ class Feeds extends Handler_Protected {
|
||||
|
||||
if ($line["feed_title"] && !$vfeed_group_enabled) {
|
||||
|
||||
$reply['content'] .= "<span onclick=\"viewfeed({feed:$feed_id})\"
|
||||
$reply['content'] .= "<span onclick=\"Feeds.viewfeed({feed:$feed_id})\"
|
||||
style=\"cursor : pointer\"
|
||||
title=\"".htmlspecialchars($line['feed_title'])."\">
|
||||
$feed_icon_img</span>";
|
||||
@@ -488,7 +488,7 @@ class Feeds extends Handler_Protected {
|
||||
|
||||
$reply['content'] .= "<div data-feed-id='$feed_id' class='feed-title'>".
|
||||
"<div style=\"float : right\">$feed_icon_img</div>".
|
||||
"<a href=\"#\" class='title' onclick=\"viewfeed({feed:$feed_id})\">".
|
||||
"<a href=\"#\" class='title' onclick=\"Feeds.viewfeed({feed:$feed_id})\">".
|
||||
$line["feed_title"]."</a> $vf_catchup_link</div>";
|
||||
|
||||
}
|
||||
@@ -547,7 +547,7 @@ class Feeds extends Handler_Protected {
|
||||
|
||||
$tmp_content .= "<div class=\"feed\">
|
||||
<a href=\"#\" style=\"background-color: rgba($rgba,0.3)\"
|
||||
onclick=\"viewfeed({feed:$feed_id})\">".
|
||||
onclick=\"Feeds.viewfeed({feed:$feed_id})\">".
|
||||
truncate_string($line["feed_title"],30)."</a>
|
||||
</div>";
|
||||
}
|
||||
@@ -561,7 +561,7 @@ class Feeds extends Handler_Protected {
|
||||
if (!get_pref("VFEED_GROUP_BY_FEED") && $line["feed_title"]) {
|
||||
$tmp_content .= "<span style=\"cursor : pointer\"
|
||||
title=\"".htmlspecialchars($line["feed_title"])."\"
|
||||
onclick=\"viewfeed({feed:$feed_id})\">$feed_icon_img</span>";
|
||||
onclick=\"Feeds.viewfeed({feed:$feed_id})\">$feed_icon_img</span>";
|
||||
}
|
||||
$tmp_content .= "</div>"; //score wrapper2
|
||||
|
||||
|
||||
@@ -1174,7 +1174,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||
print "<div style='float : right; padding-right : 4px;'>
|
||||
<input dojoType=\"dijit.form.TextBox\" id=\"feed_search\" size=\"20\" type=\"search\"
|
||||
value=\"$feed_search\">
|
||||
<button dojoType=\"dijit.form.Button\" onclick=\"updateFeedList()\">".
|
||||
<button dojoType=\"dijit.form.Button\" onclick=\"Feeds.reload()\">".
|
||||
__('Search')."</button>
|
||||
</div>";
|
||||
|
||||
@@ -1306,7 +1306,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||
|
||||
print_warning("Published OPML does not include your Tiny Tiny RSS settings, feeds that require authentication or feeds hidden from Popular feeds.");
|
||||
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return displayDlg('".__("Public OPML URL")."','pubOPMLUrl')\">".
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return Utils.displayDlg('".__("Public OPML URL")."','pubOPMLUrl')\">".
|
||||
__('Display published OPML URL')."</button> ";
|
||||
|
||||
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_TAB_SECTION,
|
||||
@@ -1323,7 +1323,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||
|
||||
print "<p>";
|
||||
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return displayDlg('".__("View as RSS")."','generatedFeed', '$rss_url')\">".
|
||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return Utils.displayDlg('".__("View as RSS")."','generatedFeed', '$rss_url')\">".
|
||||
__('Display URL')."</button> ";
|
||||
|
||||
print "<button class=\"warning\" dojoType=\"dijit.form.Button\" onclick=\"return clearFeedAccessKeys()\">".
|
||||
|
||||
Reference in New Issue
Block a user