browser interface fixes
This commit is contained in:
parent
018e1b8ce4
commit
a7f22b70ec
15
backend.php
15
backend.php
|
@ -1504,6 +1504,8 @@
|
||||||
if ($subop == "massSubscribe") {
|
if ($subop == "massSubscribe") {
|
||||||
$ids = split(",", db_escape_string($_GET["ids"]));
|
$ids = split(",", db_escape_string($_GET["ids"]));
|
||||||
|
|
||||||
|
$subscribed = array();
|
||||||
|
|
||||||
foreach ($ids as $id) {
|
foreach ($ids as $id) {
|
||||||
$result = db_query($link, "SELECT feed_url,title FROM ttrss_feeds
|
$result = db_query($link, "SELECT feed_url,title FROM ttrss_feeds
|
||||||
WHERE id = '$id'");
|
WHERE id = '$id'");
|
||||||
|
@ -1518,8 +1520,21 @@
|
||||||
$result = db_query($link,
|
$result = db_query($link,
|
||||||
"INSERT INTO ttrss_feeds (owner_uid,feed_url,title,cat_id)
|
"INSERT INTO ttrss_feeds (owner_uid,feed_url,title,cat_id)
|
||||||
VALUES ('".$_SESSION["uid"]."', '$feed_url', '$title', NULL)");
|
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") {
|
if ($subop == "browse") {
|
||||||
|
|
33
prefs.js
33
prefs.js
|
@ -45,6 +45,8 @@ function feedlist_callback() {
|
||||||
try {
|
try {
|
||||||
var container = document.getElementById('prefContent');
|
var container = document.getElementById('prefContent');
|
||||||
container.innerHTML=xmlhttp.responseText;
|
container.innerHTML=xmlhttp.responseText;
|
||||||
|
selectTab("feedConfig", true);
|
||||||
|
|
||||||
if (active_feed) {
|
if (active_feed) {
|
||||||
var row = document.getElementById("FEEDR-" + active_feed);
|
var row = document.getElementById("FEEDR-" + active_feed);
|
||||||
if (row) {
|
if (row) {
|
||||||
|
@ -1206,25 +1208,30 @@ function updatePrefsList() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectTab(id) {
|
function selectTab(id, noupdate) {
|
||||||
|
|
||||||
|
// alert(id);
|
||||||
|
|
||||||
if (!xmlhttp_ready(xmlhttp)) {
|
if (!xmlhttp_ready(xmlhttp)) {
|
||||||
printLockingError();
|
printLockingError();
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (id == "feedConfig") {
|
if (!noupdate) {
|
||||||
updateFeedList();
|
|
||||||
} else if (id == "filterConfig") {
|
if (id == "feedConfig") {
|
||||||
updateFilterList();
|
updateFeedList();
|
||||||
} else if (id == "labelConfig") {
|
} else if (id == "filterConfig") {
|
||||||
updateLabelList();
|
updateFilterList();
|
||||||
} else if (id == "genConfig") {
|
} else if (id == "labelConfig") {
|
||||||
updatePrefsList();
|
updateLabelList();
|
||||||
} else if (id == "userConfig") {
|
} else if (id == "genConfig") {
|
||||||
updateUsersList();
|
updatePrefsList();
|
||||||
} else if (id == "feedBrowser") {
|
} else if (id == "userConfig") {
|
||||||
updateBigFeedBrowser();
|
updateUsersList();
|
||||||
|
} else if (id == "feedBrowser") {
|
||||||
|
updateBigFeedBrowser();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var tab = document.getElementById(active_tab + "Tab");
|
var tab = document.getElementById(active_tab + "Tab");
|
||||||
|
|
Loading…
Reference in New Issue