diff options
author | Andrew Dolgov <[email protected]> | 2010-11-26 19:22:08 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-26 19:22:08 +0300 |
commit | 36146ae5036f9a2dae13335b7b4593e7c5fca127 (patch) | |
tree | b916a75cef186262adc80a4a89b29accba18b28a /functions.js | |
parent | 284642aabf7af67c9d068935e0c2cb016c4a1af3 (diff) |
js: code cleanup
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 41 |
1 files changed, 2 insertions, 39 deletions
diff --git a/functions.js b/functions.js index 1b5bfaf4b..ed4f47122 100644 --- a/functions.js +++ b/functions.js @@ -419,21 +419,6 @@ function displayDlg(id, param, callback) { return false; } -function infobox_submit_callback2(transport) { - closeInfoBox(); - - try { - // called from prefs, reload tab - if (typeof active_tab != 'undefined' && active_tab) { - selectTab(active_tab, false); - } - } catch (e) { } - - if (transport.responseText) { - notify_info(transport.responseText); - } -} - function infobox_callback2(transport) { try { var dialog = false; @@ -680,24 +665,6 @@ function remove_splash() { } } -/* function getSelectedFeedsFromBrowser() { - - var list = $$("#browseFeedList li[id*=FBROW]"); - - var selected = new Array(); - - list.each(function(child) { - var id = child.id.replace("FBROW-", ""); - - if (child.hasClassName('Selected')) { - selected.push(id); - } - }); - - return selected; -} */ - - function transport_error_check(transport) { try { if (transport.responseXML) { @@ -862,7 +829,7 @@ function addLabel(select, callback) { if (callback) { callback(transport); } else if (inPreferences()) { - infobox_submit_callback2(transport); + updateLabelList(); } else { updateFeedList(); } @@ -917,11 +884,7 @@ function quickAddFeed() { dialog.hide(); notify_info(__("Subscribed to %s").replace("%s", feed_url)); - if (inPreferences()) { - updateFeedList(); - } else { - setTimeout('updateFeedList(false, false)', 50); - } + updateFeedList(); break; case 2: alert(__("Specified URL seems to be invalid.")); |