mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 17:45:56 +00:00
loading progress bar for main window (2)
This commit is contained in:
15
feedlist.js
15
feedlist.js
@@ -321,7 +321,7 @@ function feedlist_init() {
|
|||||||
// if (arguments.callee.done) return;
|
// if (arguments.callee.done) return;
|
||||||
// arguments.callee.done = true;
|
// arguments.callee.done = true;
|
||||||
|
|
||||||
loading_set_progress(80);
|
loading_set_progress(90);
|
||||||
|
|
||||||
debug("in feedlist init");
|
debug("in feedlist init");
|
||||||
|
|
||||||
@@ -346,7 +346,7 @@ function feedlist_init() {
|
|||||||
debug("some feed is open on feedlist refresh, reloading");
|
debug("some feed is open on feedlist refresh, reloading");
|
||||||
setTimeout("viewCurrentFeed()", 100);
|
setTimeout("viewCurrentFeed()", 100);
|
||||||
} else {
|
} else {
|
||||||
if (getInitParam("cdm_auto_catchup") != 1) {
|
if (getInitParam("cdm_auto_catchup") != 1 && get_feed_unread(-3) > 0) {
|
||||||
notify_silent_next();
|
notify_silent_next();
|
||||||
setTimeout("viewfeed(-3)", 100);
|
setTimeout("viewfeed(-3)", 100);
|
||||||
} else {
|
} else {
|
||||||
@@ -366,8 +366,6 @@ function feedlist_init() {
|
|||||||
|
|
||||||
init_collapsable_feedlist(getInitParam("theme"));
|
init_collapsable_feedlist(getInitParam("theme"));
|
||||||
|
|
||||||
loading_set_progress(80);
|
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("feedlist/init", e);
|
exception_error("feedlist/init", e);
|
||||||
}
|
}
|
||||||
@@ -463,11 +461,6 @@ function init_collapsable_feedlist(theme) {
|
|||||||
|
|
||||||
function remove_splash() {
|
function remove_splash() {
|
||||||
debug("about to remove splash, OMG!");
|
debug("about to remove splash, OMG!");
|
||||||
|
Element.hide("overlay");
|
||||||
var o = document.getElementById("overlay");
|
debug("removed splash!");
|
||||||
|
|
||||||
if (o) {
|
|
||||||
o.style.display = "none";
|
|
||||||
debug("removed splash!");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
14
functions.js
14
functions.js
@@ -2,6 +2,7 @@ var hotkeys_enabled = true;
|
|||||||
var debug_mode_enabled = false;
|
var debug_mode_enabled = false;
|
||||||
var xmlhttp_rpc = Ajax.getTransport();
|
var xmlhttp_rpc = Ajax.getTransport();
|
||||||
var notify_silent = false;
|
var notify_silent = false;
|
||||||
|
var last_progress_point = 0;
|
||||||
|
|
||||||
/* add method to remove element from array */
|
/* add method to remove element from array */
|
||||||
|
|
||||||
@@ -1671,10 +1672,19 @@ function focus_element(id) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function loading_set_progress(v) {
|
function loading_set_progress(p) {
|
||||||
try {
|
try {
|
||||||
|
if (!Element.visible("overlay")) return;
|
||||||
|
|
||||||
var o = document.getElementById("l_progress_i");
|
var o = document.getElementById("l_progress_i");
|
||||||
o.style.width = (v*2) + "px";
|
|
||||||
|
new Effect.Scale(o, p, {
|
||||||
|
scaleY : false,
|
||||||
|
scaleFrom : last_progress_point,
|
||||||
|
scaleMode: { originalWidth : 200 },
|
||||||
|
queue: { position: 'end', scope: 'LSP-Q', limit: 1 } });
|
||||||
|
|
||||||
|
last_progress_point = p;
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("loading_set_progress", e);
|
exception_error("loading_set_progress", e);
|
||||||
|
|||||||
@@ -4173,7 +4173,7 @@
|
|||||||
|
|
||||||
$age_qpart = getMaxAgeSubquery();
|
$age_qpart = getMaxAgeSubquery();
|
||||||
|
|
||||||
$result = db_query($link, "SELECT ttrss_feeds.*,
|
$query = "SELECT ttrss_feeds.*,
|
||||||
".SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated_noms,
|
".SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated_noms,
|
||||||
(SELECT COUNT(id) FROM ttrss_entries,ttrss_user_entries
|
(SELECT COUNT(id) FROM ttrss_entries,ttrss_user_entries
|
||||||
WHERE feed_id = ttrss_feeds.id AND unread = true
|
WHERE feed_id = ttrss_feeds.id AND unread = true
|
||||||
@@ -4188,7 +4188,9 @@
|
|||||||
WHERE
|
WHERE
|
||||||
ttrss_feeds.hidden = false AND
|
ttrss_feeds.hidden = false AND
|
||||||
ttrss_feeds.owner_uid = '$owner_uid' AND parent_feed IS NULL
|
ttrss_feeds.owner_uid = '$owner_uid' AND parent_feed IS NULL
|
||||||
ORDER BY $order_by_qpart");
|
ORDER BY $order_by_qpart";
|
||||||
|
|
||||||
|
$result = db_query($link, $query);
|
||||||
|
|
||||||
$actid = $_GET["actid"];
|
$actid = $_GET["actid"];
|
||||||
|
|
||||||
|
|||||||
@@ -1940,5 +1940,5 @@ div#l_progress_o {
|
|||||||
div#l_progress_i {
|
div#l_progress_i {
|
||||||
width : 10px;
|
width : 10px;
|
||||||
background-color : #88b0f0;
|
background-color : #88b0f0;
|
||||||
padding : 5px;
|
height : 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
<?php echo __("Loading, please wait...") ?>
|
<?php echo __("Loading, please wait...") ?>
|
||||||
|
|
||||||
<div id="l_progress_o">
|
<div id="l_progress_o">
|
||||||
<div id="l_progress_i"> </div>
|
<div id="l_progress_i"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<noscript>
|
<noscript>
|
||||||
|
|||||||
Reference in New Issue
Block a user