summaryrefslogtreecommitdiff
path: root/digest.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-09-13 15:17:26 +0400
committerAndrew Dolgov <[email protected]>2010-09-13 15:17:26 +0400
commit285de6d8a3221fc2dbc4954eb867b82d2e42d310 (patch)
tree63fde9e69efc8937fa99a8b702fcc680b04b37c5 /digest.js
parentb17c54b32cd7446012c0fe53d235f71fb0971c55 (diff)
digest: utilize sanity checking on init
Diffstat (limited to 'digest.js')
-rw-r--r--digest.js17
1 files changed, 6 insertions, 11 deletions
diff --git a/digest.js b/digest.js
index d6dc41e8a..8659c8fb3 100644
--- a/digest.js
+++ b/digest.js
@@ -1,4 +1,8 @@
var last_feeds = [];
+var init_params = {};
+
+var db = false;
+var store = false;
var _active_feed_id = false;
var _active_feed_offset = false;
@@ -309,7 +313,7 @@ function find_feed(feeds, feed_id) {
function get_feed_icon(feed) {
try {
if (feed.has_icon)
- return 'icons/' + feed.id + '.ico';
+ return getInitParam('icons_location') + "/" + feed.id + '.ico';
if (feed.id == -1)
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() {
try {
new Ajax.Request("backend.php", {
parameters: "?op=rpc&subop=sanityCheck",
onComplete: function(transport) {
- sanity_check(transport);
+ backend_sanity_check_callback(transport);
} });
} catch (e) {