mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-21 03:51:28 +00:00
browser interface fixes
This commit is contained in:
15
backend.php
15
backend.php
@@ -1504,6 +1504,8 @@
|
||||
if ($subop == "massSubscribe") {
|
||||
$ids = split(",", db_escape_string($_GET["ids"]));
|
||||
|
||||
$subscribed = array();
|
||||
|
||||
foreach ($ids as $id) {
|
||||
$result = db_query($link, "SELECT feed_url,title FROM ttrss_feeds
|
||||
WHERE id = '$id'");
|
||||
@@ -1518,8 +1520,21 @@
|
||||
$result = db_query($link,
|
||||
"INSERT INTO ttrss_feeds (owner_uid,feed_url,title,cat_id)
|
||||
VALUES ('".$_SESSION["uid"]."', '$feed_url', '$title', NULL)");
|
||||
|
||||
array_push($subscribed, $title);
|
||||
}
|
||||
}
|
||||
|
||||
if (count($subscribed) > 0) {
|
||||
print "<div class=\"notice\">";
|
||||
print "<b>Subscribed to feeds:</b>";
|
||||
print "<ul class=\"nomarks\">";
|
||||
foreach ($subscribed as $title) {
|
||||
print "<li>$title</li>";
|
||||
}
|
||||
print "</ul>";
|
||||
print "</div>";
|
||||
}
|
||||
}
|
||||
|
||||
if ($subop == "browse") {
|
||||
|
||||
9
prefs.js
9
prefs.js
@@ -45,6 +45,8 @@ function feedlist_callback() {
|
||||
try {
|
||||
var container = document.getElementById('prefContent');
|
||||
container.innerHTML=xmlhttp.responseText;
|
||||
selectTab("feedConfig", true);
|
||||
|
||||
if (active_feed) {
|
||||
var row = document.getElementById("FEEDR-" + active_feed);
|
||||
if (row) {
|
||||
@@ -1206,13 +1208,17 @@ function updatePrefsList() {
|
||||
|
||||
}
|
||||
|
||||
function selectTab(id) {
|
||||
function selectTab(id, noupdate) {
|
||||
|
||||
// alert(id);
|
||||
|
||||
if (!xmlhttp_ready(xmlhttp)) {
|
||||
printLockingError();
|
||||
return
|
||||
}
|
||||
|
||||
if (!noupdate) {
|
||||
|
||||
if (id == "feedConfig") {
|
||||
updateFeedList();
|
||||
} else if (id == "filterConfig") {
|
||||
@@ -1226,6 +1232,7 @@ function selectTab(id) {
|
||||
} else if (id == "feedBrowser") {
|
||||
updateBigFeedBrowser();
|
||||
}
|
||||
}
|
||||
|
||||
var tab = document.getElementById(active_tab + "Tab");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user