mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-22 23:31:29 +00:00
make updating feeds notify persistent, remove p_notify calls
This commit is contained in:
12
functions.js
12
functions.js
@@ -93,7 +93,7 @@ function hide_notify() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function notify_real(msg, doc) {
|
function notify_real(msg, doc, no_hide) {
|
||||||
|
|
||||||
var n = doc.getElementById("notify");
|
var n = doc.getElementById("notify");
|
||||||
var nb = doc.getElementById("notify_body");
|
var nb = doc.getElementById("notify_body");
|
||||||
@@ -115,15 +115,17 @@ function notify_real(msg, doc) {
|
|||||||
notify_last_doc = doc;
|
notify_last_doc = doc;
|
||||||
notify_opacity = 1;
|
notify_opacity = 1;
|
||||||
|
|
||||||
|
if (!no_hide) {
|
||||||
notify_hide_timerid = window.setTimeout(hide_notify, 3000);
|
notify_hide_timerid = window.setTimeout(hide_notify, 3000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function p_notify(msg) {
|
function p_notify(msg, no_hide) {
|
||||||
notify_real(msg, parent.document);
|
notify_real(msg, parent.document, no_hide);
|
||||||
}
|
}
|
||||||
|
|
||||||
function notify(msg) {
|
function notify(msg, no_hide) {
|
||||||
notify_real(msg, document);
|
notify_real(msg, document, no_hide);
|
||||||
}
|
}
|
||||||
|
|
||||||
function printLockingError() {
|
function printLockingError() {
|
||||||
|
|||||||
14
prefs.js
14
prefs.js
@@ -36,7 +36,7 @@ function expand_feed_callback() {
|
|||||||
var container = document.getElementById("BRDET-" + feed_to_expand);
|
var container = document.getElementById("BRDET-" + feed_to_expand);
|
||||||
container.innerHTML=xmlhttp.responseText;
|
container.innerHTML=xmlhttp.responseText;
|
||||||
container.style.display = "block";
|
container.style.display = "block";
|
||||||
p_notify("");
|
// p_notify("");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("expand_feed_callback", e);
|
exception_error("expand_feed_callback", e);
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ function feedlist_callback() {
|
|||||||
checkbox.checked = true;
|
checkbox.checked = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
p_notify("");
|
// p_notify("");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("feedlist_callback", e);
|
exception_error("feedlist_callback", e);
|
||||||
}
|
}
|
||||||
@@ -88,7 +88,7 @@ function filterlist_callback() {
|
|||||||
checkbox.checked = true;
|
checkbox.checked = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
p_notify("");
|
// p_notify("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -110,7 +110,7 @@ function labellist_callback() {
|
|||||||
checkbox.checked = true;
|
checkbox.checked = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
p_notify("");
|
// p_notify("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ function feed_browser_callback() {
|
|||||||
var container = document.getElementById('prefContent');
|
var container = document.getElementById('prefContent');
|
||||||
if (xmlhttp.readyState == 4) {
|
if (xmlhttp.readyState == 4) {
|
||||||
container.innerHTML=xmlhttp.responseText;
|
container.innerHTML=xmlhttp.responseText;
|
||||||
p_notify("");
|
// p_notify("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@ function userlist_callback() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p_notify("");
|
// p_notify("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ function prefslist_callback() {
|
|||||||
|
|
||||||
container.innerHTML=xmlhttp.responseText;
|
container.innerHTML=xmlhttp.responseText;
|
||||||
|
|
||||||
p_notify("");
|
// p_notify("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ function backend_sanity_check_callback() {
|
|||||||
function scheduleFeedUpdate(force) {
|
function scheduleFeedUpdate(force) {
|
||||||
|
|
||||||
if (!daemon_enabled) {
|
if (!daemon_enabled) {
|
||||||
notify("Updating feeds, please wait.");
|
notify("Updating feeds, please wait.", true);
|
||||||
updateTitle("Updating");
|
updateTitle("Updating");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user