digest: utilize sanity checking on init
This commit is contained in:
parent
b17c54b32c
commit
285de6d8a3
17
digest.js
17
digest.js
|
@ -1,4 +1,8 @@
|
||||||
var last_feeds = [];
|
var last_feeds = [];
|
||||||
|
var init_params = {};
|
||||||
|
|
||||||
|
var db = false;
|
||||||
|
var store = false;
|
||||||
|
|
||||||
var _active_feed_id = false;
|
var _active_feed_id = false;
|
||||||
var _active_feed_offset = false;
|
var _active_feed_offset = false;
|
||||||
|
@ -309,7 +313,7 @@ function find_feed(feeds, feed_id) {
|
||||||
function get_feed_icon(feed) {
|
function get_feed_icon(feed) {
|
||||||
try {
|
try {
|
||||||
if (feed.has_icon)
|
if (feed.has_icon)
|
||||||
return 'icons/' + feed.id + '.ico';
|
return getInitParam('icons_location') + "/" + feed.id + '.ico';
|
||||||
|
|
||||||
if (feed.id == -1)
|
if (feed.id == -1)
|
||||||
return 'images/mark_set.png';
|
return 'images/mark_set.png';
|
||||||
|
@ -592,22 +596,13 @@ function init_second_stage() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function sanity_check(transport) {
|
|
||||||
try {
|
|
||||||
|
|
||||||
|
|
||||||
} catch (e) {
|
|
||||||
exception_error("sanity_check", e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
new Ajax.Request("backend.php", {
|
new Ajax.Request("backend.php", {
|
||||||
parameters: "?op=rpc&subop=sanityCheck",
|
parameters: "?op=rpc&subop=sanityCheck",
|
||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
sanity_check(transport);
|
backend_sanity_check_callback(transport);
|
||||||
} });
|
} });
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue