mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:45:56 +00:00
css cleanup; remove auxDlg; add separate prefs.css
This commit is contained in:
@@ -88,8 +88,6 @@ function viewfeed(feed, method, is_cat, offset, background, infscroll_req) {
|
||||
|
||||
_infscroll_request_sent = timestamp;
|
||||
}
|
||||
|
||||
hideAuxDlg();
|
||||
}
|
||||
|
||||
Form.enable("main_toolbar_form");
|
||||
@@ -206,23 +204,6 @@ function request_counters(force) {
|
||||
}
|
||||
}
|
||||
|
||||
function displayNewContentPrompt(id) {
|
||||
try {
|
||||
|
||||
var msg = "<a href='#' onclick='viewCurrentFeed()'>" +
|
||||
__("New articles available in this feed (click to show)") + "</a>";
|
||||
|
||||
msg = msg.replace("%s", getFeedName(id));
|
||||
|
||||
$('auxDlg').innerHTML = msg;
|
||||
|
||||
new Effect.Appear('auxDlg', {duration : 0.5});
|
||||
|
||||
} catch (e) {
|
||||
exception_error("displayNewContentPrompt", e);
|
||||
}
|
||||
}
|
||||
|
||||
function parse_counters(elems, scheduled_call) {
|
||||
try {
|
||||
for (var l = 0; l < elems.length; l++) {
|
||||
@@ -245,10 +226,6 @@ function parse_counters(elems, scheduled_call) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (id == getActiveFeedId() && ctr > getFeedUnread(id) && scheduled_call) {
|
||||
displayNewContentPrompt(id);
|
||||
}
|
||||
|
||||
if (getFeedUnread(id, (kind == "cat")) != ctr ||
|
||||
(kind == "cat")) {
|
||||
}
|
||||
|
||||
@@ -717,15 +717,6 @@ function hotkey_prefix_timeout() {
|
||||
}
|
||||
}
|
||||
|
||||
function hideAuxDlg() {
|
||||
try {
|
||||
Element.hide('auxDlg');
|
||||
} catch (e) {
|
||||
exception_error("hideAuxDlg", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function uploadIconHandler(rc) {
|
||||
try {
|
||||
switch (rc) {
|
||||
|
||||
@@ -347,8 +347,6 @@ function view(id) {
|
||||
|
||||
console.log("cache check result: " + (cached_article != false));
|
||||
|
||||
hideAuxDlg();
|
||||
|
||||
var query = "?op=article&method=view&id=" + param_escape(id);
|
||||
|
||||
var neighbor_ids = getRelativePostIds(id);
|
||||
@@ -1433,8 +1431,6 @@ function cdmExpandArticle(id) {
|
||||
|
||||
if (!$("RROW-" + id)) return false;
|
||||
|
||||
hideAuxDlg();
|
||||
|
||||
var elem = $("CICD-" + getActiveArticleId());
|
||||
|
||||
if (id == getActiveArticleId() && Element.visible(elem))
|
||||
@@ -1643,8 +1639,6 @@ function cdmClicked(event, id) {
|
||||
try {
|
||||
//var shift_key = event.shiftKey;
|
||||
|
||||
hideAuxDlg();
|
||||
|
||||
if (!event.ctrlKey) {
|
||||
|
||||
if (!getInitParam("cdm_expanded")) {
|
||||
|
||||
Reference in New Issue
Block a user